|
Posted by Not here Not Now on 11/18/06 17:03
I beleive I have discovered why I can not change the permission to 777
becasue php scripts run as user nobody.
so the solution would be to have "nobady create the directory with the
permission of 777 while it runs.
I have attempted to use FTP_MKDIR and FTP_CHMOD and this to fails
resulting in a 755 permission.
I do believe the reason some people dont help as they could not be
bothered, I know some one knows the answere here and is having a real
good laugh.
linda wrote:
> "Not here Not Now" <"Not here Not Now"@nospamnospam.com> wrote in message
> news:4lq7h.10$_H5.8@tornado.texas.rr.com...
>
>>I have tried still another way and I am still not able to create a
>>directory with the 777
>>
>>$mkDIR = $username;
>>mkdir($mkDIR);
>>chmod($mkDIR, 0777);
>>Directory is succesfuly made still with wrong permission
>>
>>can some one answer this question
>>
>
>
> Sorry don't know that much about php, still learning, but have read loads
> though, lol... have you tried looking at php.net for an answer?
>
> http://uk.php.net/chmod
> http://uk.php.net/manual/en/function.mkdir.php
>
> I'm sure i read some where that a directory sturcture leading to a
> specified directory that you intend to chmod must have the same permissions!
> But I maybe wrong....
>
> Best wishes,
> Linda
>
>
[Back to original message]
|