Hello Im having difficulty getting some basic PHP code to work. I am using a tutorial, but when I try the code in the tutorial I get an error message. Can anyone see what is wrong?
Thanks in advance!
<?php
require_once("lib/template.php");
$page = new Page("template.html");
$page->replace_tags(array(
"title" => "HOME",
"descript" => "Welcome to my website!",
"main" => "dat/index.dat",
"menu" => "dat/menu.dat",
"left" => "dat/submenu.dat",
"right" => "dat/right.dat",
"footer" => "dat/footer.php"
));
$page->output();
?>
I keep getting this error message ---> unexpected '&' syntax error