Posted by johnmark on 11/22/06 16:58
Yes, I am enclosing the directoryname with quotes
John
Kim André Akerø wrote:
> jkmambo@gmail.com wrote:
>
> > Andy Hassall wrote:
> > > On 21 Nov 2006 11:37:08 -0800, johnmark@fastermail.com 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)
>
> You ARE enclosing the directory path in quotes, right?
>
> chmod("./directoryname/", 0777);
>
> --
> Kim André Akerø
> - kimandre@NOSPAMbetadome.com
> (remove NOSPAM to contact me directly)
[Back to original message]
|