Write permission problem
| From: | Manisha | Date: | Thu, 30 May 2002 03:46:07 +0000 |
| Subject: | Write permission problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99848@lists.php.net to get a copy of this message | ||
<?
$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 ?