Hi. Can someone please tell me why;
$filename = "template.html";
$content = ReadFile($filename);
$show = "something here to see if works ok";
$content = ereg_replace("::CONTENT::", $show, $content);
echo $content;
doesnt replace the ::CONTENT:: part in the template.html file (saved as the $content string).
Anyone got any ideas? I have tried escaping the :'s, but that doesnt work.
Thanks
Andy
$filename = "template.html";
$content = ReadFile($filename);
$show = "something here to see if works ok";
$content = ereg_replace("::CONTENT::", $show, $content);
echo $content;
doesnt replace the ::CONTENT:: part in the template.html file (saved as the $content string).
Anyone got any ideas? I have tried escaping the :'s, but that doesnt work.
Thanks
Andy