note 33976 added to function.fopen
| From: | dave at mixd dot net | Date: | Sat, 12 Jul 2003 16:44:20 +0000 |
| Subject: | note 33976 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51974@lists.php.net to get a copy of this message | ||
This was a major headache for me but a very simple fix:
instead of using the actual path to your file like this:
$handle = fopen('http://www.yoursite.com/dir/file.txt',
'a')
use the directory to your file as you see in your FTP program:
$handle = fopen('/home/yoursite/www/www/dir/file.txt', 'a')
Also, make sure that exact directory has public read/write permissions enabled. I believe some other
people may have tried to explain what I have said above, but to a beginner it was hard to pick up.
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33976
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33976&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33976&report=yes