Jump to content

Permission problem creating a directory


blurgh

Recommended Posts

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,
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.