printing PHP code
Posted: Mon Dec 09, 2002 9:29 am
Hi
I have a few functions which reads a template html file and fills in template variables with actual values.
However when outputting PHP code to the template file like this:
print "<? print something; ?>";
the code is not excuted in the generated HTML file,
how could i write to a document at execution time, and make the php code itself im writing execute too?
the example above best illustrates what i mean
thanks
M
I have a few functions which reads a template html file and fills in template variables with actual values.
However when outputting PHP code to the template file like this:
print "<? print something; ?>";
the code is not excuted in the generated HTML file,
how could i write to a document at execution time, and make the php code itself im writing execute too?
the example above best illustrates what i mean
thanks
M