|
Posted by Jerry Stuckle on 11/23/06 12:55
johnmark@fastermail.com wrote:
> Gordon Burditt wrote:
>
>>>>>How does one set directory permissions in PHP? The manual only refers
>>>>>to chmod function changing permissions for files. I try to use it for
>>>>>directories but it didn't work.
>>>>
>>>> In what way did it not work? Because that's the correct function to use.
>>>>
>>
>>>Here is the statement I am running
>>>chmod(./directoryname/, 0777)
>>
>>What is the owner of the directory?
>>What user is the PHP process running as (e.g. 'apache', 'daemon', 'www', etc)?
>>
>>If these don't match, you can't change the permissions because the OS
>>won't let PHP do it.
>
>
> The directory is under apache web root directory. Its currently set to
> 755. I am running PHP under apache.
>
But again, who is the owner? And what is the user Apache is running under?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|