note 80707 added to function.file-get-contents

From: Date: Tue, 29 Jan 2008 19:29:22 +0000
Subject: note 80707 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-135560@lists.php.net to get a copy of this message
<?PHP //PHP 4.2.x Compatibility function if (!function_exists('file_get_contents')) { function file_get_contents($filename, $incpath = false, $resource_context = null) { if (false === $fh = fopen($filename, 'rb', $incpath)) { trigger_error('file_get_contents() failed to open stream: No such file or directory', E_USER_WARNING); return false; } clearstatcache(); if ($fsize = @filesize($filename)) { $data = fread($fh, $fsize); } else { $data = ''; while (!feof($fh)) { $data .= fread($fh, 8192); } } fclose($fh); return $data; } } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 190.70.149.84 ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- https://master.php.net/note/edit/80707 Del: integrated -- https://master.php.net/note/delete/80707/integrated Del: useless -- https://master.php.net/note/delete/80707/useless Del: bad code -- https://master.php.net/note/delete/80707/bad+code Del: spam -- https://master.php.net/note/delete/80707/spam Del: non-english -- https://master.php.net/note/delete/80707/non-english Del: in docs -- https://master.php.net/note/delete/80707/in+docs Del: other reasons-- https://master.php.net/note/delete/80707 Reject -- https://master.php.net/note/reject/80707 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135560) next »