MrMagooba Posted June 16, 2007 Share Posted June 16, 2007 I've not coded php for a couple of years now and, for some reason, I decided to refresh my memory. I opened an old script I had been playing with back then and started editing, and testing on my local machine. I have Apache, PHP Version 4.3.10 and MySQL installed on my machine which I have had installed for what must be two and a half years. When I test locally, the site (what there is of it) works perfectly, correct includes are called, menus expanded and menu items highlighted when chosen. When I upload it to my host (which is apache based and supports both PHP4 and 5 (PHP Version 4.4.7 installed)), the initial page is correct, but when I click on any menu item, includes aren't called, selected menu items aren't highlighted or expanded. Any help is greatly appreciated as it is now really bugging me. I have attached my index.php file to this post whis has pretty much all my coding. You can see it not working here Oh, and sorry about the inline css bloating it out, but it helps me with initial page testing! [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted June 16, 2007 Share Posted June 16, 2007 I just took a quick look, but im guessing it is to do with supergobals. You'll probably find that on your local server, register_globals is on, whilst on your host it is off. You'll need to retrieve all of your get, post, session data from their respective arrays. For example: $pageid = $_GET['pageid']; Quote Link to comment Share on other sites More sharing options...
MrMagooba Posted June 16, 2007 Author Share Posted June 16, 2007 That is indeed what it is, I forgot I changed server last year, and as I have only been using it for emails, I had made no changes to the settings. Many thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.