note 48480 deleted from function.file-get-contents by aidan

From: Date: Mon, 31 Jan 2005 07:22:05 +0000
Subject: note 48480 deleted from function.file-get-contents by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84259@lists.php.net to get a copy of this message
Note Submitter: ianphpnet at ianco dot co dot uk ---- llcooldanny's suggestion is useful. But because file() may return false, implode could give an error. Try if (!function_exists('file_get_contents')) { function file_get_contents($file) { $v = file($file); return ($v) ? implode('', $v) : false; } }

« previous php.notes (#84259) next »