Hi,
My host recently moved my site to a new server which has a new version of PHP4 installed on it. The previous server also has PHP4 installed on it.
Now my host says that my site is running slow because of my PHP script, it may not be compatible with the latest verion of PHP4.
Here's the script.
<?
// file: index.php
// include header information
INCLUDE "templates/header.inc";
// If no section or page is selected, display the default content.
IF ($y == '')
{ $y = "core"; }
IF ($x == '')
{ $x = "index"; }
// include the navigation
INCLUDE "$y/$y-nav.inc";
INCLUDE "$y/$x-subnav.inc";
// include the main body
IF ($z == '')
{ INCLUDE "$y/$x.html"; }
else
{ INCLUDE "$y/$z.html"; }
// Include footer information
INCLUDE "templates/footer.inc";
?>
urls are usually http://mysite.com/?y=etc&x=abc
Any idea why this script is running slow on the new server?
The script was working well on the previous server. It wasn't slow at all.
Thanks in advance.