Jump to content


Photo

Permission problem creating a directory


  • Please log in to reply
No replies to this topic

#1 blurgh

blurgh
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 23 March 2006 - 10:34 PM

Hi people,

I want to be able to get PHP to create a directory (and the add a writable file to it).

No problem you say, mkdir() is the answer.

However, I want PHP to be able to create a directory in a directory created by someone else.

[!--fonto:Courier New--][span style=\"font-family:Courier New\"][!--/fonto--]total 0
drwxr-xr-x 3 mortal admin 102 Mar 23 21:41 .
drwxrwxrwx 61 al admin 2074 Mar 23 21:49 ..
drwxr-xr-x 2 mortal admin 68 Mar 23 21:41 test[!--fontc--][/span][!--/fontc--]

The 'test' directory was successfully created by user 'mortal'. I want PHP to create a subdirectory called 'meta' but it doesn't have the permission to do so?!?!

Can anyone tell me how to either gain permission or otherwise get around this problem please?

cheers,




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users