Re: [PHP] writing to file From: Ahmed (ahmed <email protected>)
Date: 08/15/00

I have done all these steps, and I made sure that I can write to that
directory using shell commands, but I dont know whats wrong here !!

"Krznaric Michael" <mkrznaric <email protected>> wrote in message
news:31CDAF2F1287D2118BE40008C7568D650E537561 <email protected>
> No, you just have to make them executable.
> Do ls -l and there should be something along the lines of drwxrwxrwx .
> You must have the last x in then end. Another, easier thing you can do is
> login as a user that doesn't own that directory and see wheter you can
> create files in the suspect directory.
> Do something like date > testfile
> cat testfile file://List the file contents
> or ls -l and see if the file is there.
>
> This way you can eliminate the permission problem and concentrate your
> debugging efforts in your code.
>
> Mike
>
>
> -----Original Message-----
> From: Ahmed [mailto:ahmed <email protected>]
> Sent: Tuesday, August 15, 2000 9:23 AM
> To: php-general <email protected>
> Subject: Re: [PHP] writing to file
>
>
> Do I have to make all the parent directories set ot 777 ?!!
>
>
>
> "Krznaric Michael" <mkrznaric <email protected>> wrote in message
> news:31CDAF2F1287D2118BE40008C7568D650E537560 <email protected>
> > Strange.
> >
> > This is the only thing i can think of. You said you have permission
> > 777 on the directory you are trying to write to. Do you have execute
> > permission on the parent of that directory?
> >
> > Mike
> >
> > -----Original Message-----
> > From: Ahmed [mailto:ahmed <email protected>]
> > Sent: Tuesday, August 15, 2000 9:14 AM
> > To: php-general <email protected>
> > Subject: [PHP] writing to file
> >
> >
> > Hi all,
> > I have problems creating new files using fopen and touch.
> > when I use either of them I always get " permissoin denied " although I
> made
> > the permission of the directory I am writing to 777, but if the file
> already
> > exists I can write to it using fopen, so what the problem should be ??!
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> > For additional commands, e-mail: php-general-help <email protected>
> > To contact the list administrators, e-mail: php-list-admin <email protected>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> > For additional commands, e-mail: php-general-help <email protected>
> > To contact the list administrators, e-mail: php-list-admin <email protected>
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>