note 21261 added to function.file-get-contents

From: Date: Sun, 05 May 2002 19:46:23 +0000
Subject: note 21261 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-30227@lists.php.net to get a copy of this message
If you are not using the CVS version of PHP you can use this functon: function file_get_contents($filename, $use_include_path = 0) { $fd = fopen ($filename, "rb", $use_include_path); $contents = fread($fd, filesize($filename)); fclose($fd); return $contents; } If you have access to the php.ini file you can also create a PHP script which will automatically be included in each page using the auto_prepend_file directive. -- http://www.php.net/manual/en/function.file-get-contents.php http://master.php.net/manage/user-notes.php?action=edit+21261 http://master.php.net/manage/user-notes.php?action=delete+21261 http://master.php.net/manage/user-notes.php?action=reject+21261

« previous php.notes (#30227) next »