RE: [PHP] writing to file

From: Date: Tue, 15 Aug 2000 13:37:52 +0000
Subject: RE: [PHP] writing to file
Groups: php.general 
Request: Send a blank email to php-general+get-11798@lists.php.net to get a copy of this message
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 //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@mazika.com] Sent: Tuesday, August 15, 2000 9:23 AM To: php-general@lists.php.net Subject: Re: [PHP] writing to file Do I have to make all the parent directories set ot 777 ?!! "Krznaric Michael" <mkrznaric@rand.com> wrote in message news:31CDAF2F1287D2118BE40008C7568D650E537560@srvtoronto.rand.com... > 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@mazika.com] > Sent: Tuesday, August 15, 2000 9:14 AM > To: php-general@lists.php.net > 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@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#11798) next »