RE: [PHP] Write permission problem
| From: | Martin Towell | Date: | Thu, 30 May 2002 03:49:33 +0000 |
| Subject: | RE: [PHP] Write permission problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99850@lists.php.net to get a copy of this message | ||
on linux : chmod
in php : chmod()
http://www.php.net/manual/en/function.chmod.php
the script will need write access to the directory otherwise it can't.....
write to it... :)
-----Original Message-----
From: Manisha [mailto:manisha@aurica.com]
Sent: Thursday, May 30, 2002 1:46 PM
To: php-general@lists.php.net
Subject: [PHP] Write permission problem
<?
$fp = fopen ("EmailListNew.txt", "w");
$fpSend = fwrite($fp,"The file is created on Linux");
fclose ($fp);
echo ("File write test over");
?>
This is piece of my code, It is executing without any error but file is not
getting created. I tried the read mode, it is ok. That means the directory
does not have write permission. But then how to set it ?
My server is Red Hat Linux and I am using PHP4. Can I set it thr PHP or do
I need to do settings at Linux server ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php