fopen successful..cant write to the file though permissions are ok..
| From: | mukta telang | Date: | Fri, 11 Jun 2004 15:13:46 +0000 |
| Subject: | fopen successful..cant write to the file though permissions are ok.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-188108@lists.php.net to get a copy of this message | ||
Hi,
I am facing a strange problem..When I try to create a
file in /tmp directory (using php script) as follows:
$filename"/tmp/newfile");
$filehandle=fopen($filename,"w");
fclose($filehandle);
I get error something like fclose(): ~not a stream~.
All routines like fwrite(), readdir() give errors.
An empty file gets created though.
Its silly, but cant find the reason..
Please help,
Mukta
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/