I developed a small CMS on a Windows machine running apache/mysql. Upload it to my webhost *nix and all's working fine untill a few days ago, I've also found other hosts have the same problem:
The problem (simplified) is using the phplib template library any var's a set in a function don't make it back to the calling function (anymore).
index.html
<html>
<body>
{value}
</body>
</html>
doesn't work:
include_once('template.inc');
$t = new Template(template_dir,"keep");
$t->set_file("mainpage","index.html");
footer($t);
$t->pparse("OUT", "mainpage");
function footer($t){
$t->set_var("value","blah");
}
works:
include_once('template.inc');
$t = new Template(template_dir,"keep");
$t->set_file("mainpage","index.html");
$t->set_var("value","blah");
$t->pparse("OUT", "mainpage");
The problem being the one that doesn't work used to work and it still does work on my 98 box.
Any help is greatly appreciated