note 48403 added to function.file-get-contents
| From: | llcooldanny | Date: | Wed, 22 Dec 2004 13:05:55 +0000 |
| Subject: | note 48403 added to function.file-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82174@lists.php.net to get a copy of this message | ||
Correct is this way:
<?php
if(!function_exists('file_get_contents')) {
function file_get_contents($file) {
return implode('', file($file));
}
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48403
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48403&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48403&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48403&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48403&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48403&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48403&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48403&report=yes
Search -- http://master.php.net/manage/user-notes.php