|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-12-07 19:38 UTC] jason@php.net
[2000-12-21 03:18 UTC] jason@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
You may be able to shed some light on this PHP problem. Have not used the facility to write files before so apologies if this is a simple config issue. Anything that tries to write to a file fails. I checked that the target directory is writable by the Apache user (nobody). This is set to 777. Here's a test prog: <html><body> <h2>file write test</h2> <? $out=fopen("/home/handyman/DB/tmp.tmp","w") || die ("Can't open file for write"); fputs($out,"test string\n"); fclose($out); ?> </body></html> Here's the result. file write test Warning: Supplied argument is not a valid File-Handle resource in /home/handyman/public_html/traveller/test.php on line 7 Warning: Supplied argument is not a valid File-Handle resource in /home/handyman/public_html/traveller/test.php on line 8 Note: It did not fail the fopen() it did, however, fail the write and the close. It creates a file of zero length. The file handle did not get created properly. But why?