Hello,
I used to have a host that used to run php on an Apache Module, but now my new host runs it as CGI Binary. They tell me that this means all php files should have to have a php extension, as they will not run .html extended files. :eek: :eek:
This was the code I used to use...
<?
if (file_exists("$page.html")):
include("$page.html");
else:
include("content.html");
endif;
?>
But now since it doesn't want a .html extension but a php extension, how do I convert them? I have already tried changing the code into this...
<?
if (file_exists("$page.php")):
include("$page.php");
else:
include("content.php");
endif;
?>
as well as changing all my other files into php, but it does not work for me. I really don't know what to do, and it's driving me insane. 😕