So, I've had a simple includes script to drive my simple PHP/HTML site for a while now with my shared hosting provider and it has worked great. I just recently changed servers, and it has a more updated PHP, and now my includes are not working anymore.
Please take a peak at the following code and see if there might be a portion that has been degraded with the new version? Any help would be greatly appreciated...
[FONT=Courier New]
<?php
if (empty($page)) {
$page= "home";
}
$file= ("" . $page . ".php");
if(file_exists($file)) include ($file);
?>[/FONT]