note 33127 added to function.fopen
| From: | RobNar at rack1 dot php dot net | Date: | Tue, 17 Jun 2003 13:15:27 +0000 |
| Subject: | note 33127 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50486@lists.php.net to get a copy of this message | ||
This is an addendum to ibetyouare at home dot com's note about Apache directory permissions.
If you are on a shared host and cannot tweak Apache's permissions directives then you might try
setting the same thing in a .htaccess file. Failing that, if you are having trouble just creating
files then set the directory permissions to allow writing (for whatever directory the file is
supposed to be in) and include the following before fopen():
touch /path/to/myfile/myfile.txt;
That will usually create a new empty file that you can write to even when fopen fails. - PHP 4.3.0
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33127
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33127&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33127&report=yes