I'm building a site with PHP. The site uses databases a lot. I'm working with someone other. He will create all the HTML files (layout etc.). Because we don't want to have PHP code in the HTML-files, I want to use templates.
I thought I can do this:
- The user opens the PHP file
- The php file opens the templates, and replaces everything like #--NAME--# (own created tag) with $name.
- The php file echos the buffer to the screen.
This works fine...
My problem:
I want to replace #--INIT--# with some text:
<?
require(\"mysql_connect.inc\");
require(\"mysql_selecttbl.inc\")
?>
If I just echo this, it doesn't work! How can I solve this?