Hi,
I am having a problem getting a simple PHP Include function to work.
The code I have used is as follows:
<?
$ext = “.php”;
$id = “”.$id."".$ext."";
if (file_exists($id))
{
include($id);
} else {
include “loaded.php”;
}
?>
I am almost certain it has to be something to do with the server as I have tested it and use it on my personal site on which it works perfectly.
My webspace: http://pub.4ndy.co.uk/PHP_Test
Where it needs to work: http://www.hi-res-av.com/PHP_Test
Is there a reason that this function would not work, like an old version of PHP being used on the server or something? The hosting provider said that he could see no fault with the installation at his end.
Any help would be much appreciated as if this doesn’t work I’ll have to revert to having an individual page for each product. nightmare!