Jump to content

Help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
Is there a way when a user registers it also creates them a folder which is chmoded to 777?

#2
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
friend gave me the function name
mkdir()
thanks solved

#3
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
There is almost no reason the folder needs to be 777. To be safe, make it 755.

#4
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
its image upload script.. Where people have their own folders.. so it really doesn't matter

#5
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts

Whitey said:

its image upload script.. Where people have their own folders.. so it really doesn't matter

Don't be so naive. That is one of the stupidest things I've heard.

#6
phpforfun

phpforfun

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,236 posts
palm test
Posted via CodeCall Mobile

#7
Whitey

Whitey

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
May i ask how so? sorry for being naive

#8
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
mod 777 gives read-write-and execute permissions to the entire contents of the directory. If a user spoofs your image validation, or if you have a local file inclusion vulnerability on your server a hacker can execute shell scripts or install a php shell.