Forums / Developer / PHP code in templates / Comment42656
Trond Hjelmaas
Thursday 24 March 2005 8:43:23 am
Thanks Gabriel,
this is my first time using Ez and sorry if I ask basic questions. I wrote a template operator that was really simple and it worked, but not quite as I hoped for.
This is the function:;
function include_my_php() { include("myFile.php");}
It includes the php file but it gets included at the very beginning of the html file:
----start of html file----- The content of myFile.php <html> ...my other content. </html>----start of html file-----
I would like the file to be included "inside" the html code, exactly where I call include_my_php().
Would you have any ideas how to do that?
Thanks in advance!