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.

I've designed it this way because I work with guys that are dreamweaver crazy and want to do all their layout there.

Maybe I should parse the file, and eval() the PHP and echoing the HTML? Or is there a better way?

Jon

On Aug 13, 2004, at 8:09 AM, John Holmes wrote:

Jonathan Hadddad wrote:

if there's any PHP code in the template file, it just gets echoed to
the page.  is there any way to have the code between the <?  ?>
evaluated instead of just echoed??  I realize an include would work,
but the goal is to use a single file as the template.
anyone got any suggestions?

eval()

--

---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



Reply via email to