Hello,
A friend of my rents a server and hosts my site. This past week he reinstalled the OS on the server and went from Red Hat to CentOS. Anyways, after the reinstall I started restoring some files and I have noticed that the PHP code for the website navigation/menu does not work anymore. The code has not changed and it has been working fine for over 3 years..
Here is an example of one of the sites that does not work:
http://htmlbasics.webzila.com
Here is the code that drives the navigation (located in index.php):
<?php
if (!isset($wz)) { $wz="home"; }
switch ($wz) {
case "home": include("home.php"); break;
case "intro": include("intro.php"); break;
case "colors": include("colors.php"); break;
case "16colors": include("16colors.php"); break;
case "hexcolor": include("colorchart.php"); break;
case "fonts": include("fonts.php"); break;
case "images": include("images.php"); break;
case "tables": include("tables.php"); break;
case "frames": include("frames.php"); break;
case "forms": include("forms.php"); break;
case "audio": include("audio.php"); break;
case "wavexample": include("wavexample.php"); break;
case "racontrols": include("racontrols.php"); break;
case "links": include("links.php"); break;
case "layout": include("layout.php"); break;
case "misc": include("misc.php"); break;
case "redirect": include("redirect.php"); break;
case "ooops": include("ooops.php"); break;
case "thankyou": include("thankyou.php"); break;
case "questions": include("questions.php"); break;
case "comments": include("contact.php"); break;
case "about": include("about.php"); break;
case "forums": include("forum.php"); break;
case "slinks": include("misclinks.php"); break;
case "meta": include("meta.php"); break;
case "linkchecker": include("linkframe.php"); break;
}
?>
So when you select a link from the menu such as "Intro" the URL is ?wz=intro.php -- you can see that it puts that in the address bar but it does not display the intro.php file on the screen - instead it just reloads home.php
This has to be a setting on the server because I tried uploading to a different server and it works fine but I have no idea what to check for.
PHP version on the server is: 4.3.9
Please help....