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");
}
?>