Jump to content

Whats changed since PHP Persion 4.3.10?


MrMagooba

Recommended Posts

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]

Link to comment
https://forums.phpfreaks.com/topic/55846-whats-changed-since-php-persion-4310/
Share on other sites

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'];

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.