note 53457 deleted from function.include by aidan

From: Date: Sat, 15 Apr 2006 16:35:26 +0000
Subject: note 53457 deleted from function.include by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108166@lists.php.net to get a copy of this message
Note Submitter: aaronfultom at softhome dot net ---- I have been trying to use php's inlude to include an htm template file which has been marked up with some php variables. However when using include() the php parsing drops out. This code keeps the parsing on. Hope its of use to someone. $buffer = addslashes(get_include_contents('resultspage.htm')); eval("echo \"".$buffer."\";"); function get_include_contents($filename) { if (is_file($filename)) { ob_start(); include $filename; $contents = ob_get_contents(); ob_end_clean(); return $contents; } return false; } results page.htm: .... <TD>{$output[variable]}</TD> ....

« previous php.notes (#108166) next »