note 69801 added to function.file-get-contents

From: Date: Thu, 21 Sep 2006 18:28:40 +0000
Subject: note 69801 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-117386@lists.php.net to get a copy of this message
This function will implement the functionality of file_get_contents() on PHP<4.3.0: function READ_FILE_CONTENTS($file) { // Wrapper for file_get_contents() with PHP<4.3.0 backwards-compatibility: // © 2006 The Charlottesville Media Group, http://www.cvillemedia.com // Free for unresricted use while this notice remains unchanged. if(!function_exists("file_get_contents"))return file_get_contents($file); $ifile = fopen($file,"r"); $contents = false; if($ifile) while (!feof($ifile)) $contents .= fgets($ifile); fclose($ifile); return $contents; } ---- Server IP: 216.194.113.175 Probable Submitter: 68.65.51.197 ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- https://master.php.net/note/edit/69801 Del: integrated -- https://master.php.net/note/delete/69801/integrated Del: useless -- https://master.php.net/note/delete/69801/useless Del: bad code -- https://master.php.net/note/delete/69801/bad+code Del: spam -- https://master.php.net/note/delete/69801/spam Del: non-english -- https://master.php.net/note/delete/69801/non-english Del: in docs -- https://master.php.net/note/delete/69801/in+docs Del: other reasons-- https://master.php.net/note/delete/69801 Reject -- https://master.php.net/note/reject/69801 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117386) next »