note 85352 deleted from function.file-get-contents by danbrown

From: Date: Fri, 08 May 2009 13:13:14 +0000
Subject: note 85352 deleted from function.file-get-contents by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154360@lists.php.net to get a copy of this message
Note Submitter: anotheruser at example dot com ---- In response to EOD (07-Aug-2008 08:34) - this function is not designed to parse php files. It only returns the full contents of any file into a string. If you're looking to parse a php file and output the full results into a string, you could use the ob_ functions wrapped around an 'include' instead: <?php ob_start(); include($filename); $return_str = ob_get_contents(); ob_end_clean(); ?>

« previous php.notes (#154360) next »