note 52269 added to function.file-put-contents
| From: | S�b dot at osu1 dot php dot net | Date: | Tue, 26 Apr 2005 18:05:11 +0000 |
| Subject: | note 52269 added to function.file-put-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88577@lists.php.net to get a copy of this message | ||
About comment @08-Mar-2005 02:22, the proposed function is not compatible with PHP5
file_put_contents( ) :
- Nothing about array
- Nor about flags and constants
- Fatal error instead of warning
- fopen( ) mods 'a+' or 'w+' are unuseful for a writting function
- Returns nothing *instead of* FALSE or length written
=> Avoid this function.
If you don't want to install PEAR, just download the PHP_Compat package and copy/past the
function file_put_contents( ) given.
http://pear.php.net/package/PHP_Compat
----
Manual Page -- http://www.php.net/manual/en/function.file-put-contents.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52269
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52269&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52269&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52269&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52269&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52269&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52269&report=yes
Search -- http://master.php.net/manage/user-notes.php