"Jonathan Haddad" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
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?

well, maybe you could search for php opening and closing tags (<?) and
evaluating only what you find between them and echoing, but I am not sure
what would happen if two such snippets needed to share the context.

Anyway, are you sure this is a good idea? templates are about separating
code and html, and most template systems I know are dreamweaver friendly.

rush
--
http://www.templatetamer.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to