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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.