Jonathan Haddad wrote:
eval takes a string and evaluates it as PHP, which I also thought would work. But this is a file of mixed PHP and HTML.
If your file starts off in HTML mode, then:
$file = file_get_contents('yourfile.php'); eval('?>'.$file.'<?');
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php