note 32454 added to function.eval

From: Date: Wed, 28 May 2003 08:35:18 +0000
Subject: note 32454 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-49155@lists.php.net to get a copy of this message
this is the perfect evalHTML function! excelent for a template engine! /* * @param $filename, the template file * @return the content of the file parsed. */ function evalHTML($filename) { ob_start(); include($filename); $value = ob_get_contents(); ob_end_clean(); return $value; } ---- Manual Page -- http://www.php.net/manual/en/function.eval.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32454 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32454&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32454&report=yes

« previous php.notes (#49155) next »