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:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 1:46 PM
To: [EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to