Re: [PHP] php code in templates... how to?

2002-10-04 Thread olinux
eval() should work for you http://www.php.net/eval You also may want to consider including files coded something like this: html head?=$headers;?/head title?=$title;?/title body ?=$header;? ?=$body;? ?=$footer;? /body /html Then you just set the values for the vars in your code - include the

[PHP] php code in templates... how to?

2002-10-03 Thread Hendrik Daldrup
Hi, i am working with templates, which i put into a string ($user_screen) and in the end i make the output with echo $user_screen; where $user_screen would contain the template file data. However, if the $user_screen contains any php code it gets echo'ed as well, instead of parsed. (ok, that