note 16886 added to function.eval
| From: | php dot net at chiefworks dot com | Date: | Sat, 17 Nov 2001 07:21:11 +0000 |
| Subject: | note 16886 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20946@lists.php.net to get a copy of this message | ||
RE: Easy way to run eval() on files start off with HTML, not PHP.
I find this much more usefull than haveing "?>" at the start of all my pages.
First, read the file into a variable $data
eval('?>' . $data);
---Caleb
--
http://www.php.net/manual/en/function.eval.php
http://master.php.net/manage/user-notes.php?action=edit+16886
http://master.php.net/manage/user-notes.php?action=delete+16886
http://master.php.net/manage/user-notes.php?action=reject+16886