note 15170 modified in function.eval by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Thu, 30 Aug 2001 23:56:02 +0000 |
| Subject: | note 15170 modified in function.eval by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17402@lists.php.net to get a copy of this message | ||
Perhaps something useful, if you want to use templates with html and phpcode
---------------------------------------
$data = join ( " ", file ( "mytemplate.tpl" ) );
$output = eval ( "?>" . $data . "<?" );
echo $output;
---------------------------------------
http://www.php.net/manual/en/function.eval.php