I'm having problems with the following code, it works fine in php4 environment but once but on php5 - doesn't work at all.
Any help would be appreciated.
<?
$ext = ".html";
$id = "incl/".$id.$ext;
if (file_exists($id))
{
include($id);
} else {
include("incl/thelead.html");
}
?>Use $_GET['id'] instead of $id, as your new install probably has register_globals turned off (as has been the default now for a number of years' worth of releases).
Any help would be appreciated.
<?
$ext = ".html";
$id = "incl/".$id.$ext;
if (file_exists($id))
{
include($id);
} else {
include("incl/thelead.html");
}
?>Use $_GET['id'] instead of $id, as your new install probably has register_globals turned off (as has been the default now for a number of years' worth of releases).