php upgrade

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

php upgrade

Post by phpScott »

My host is currently useing php 4.0.6 and wants to upgrade to php 4.3 and I am wondering about compatibilty issues.

ie:

most of the code is not using $_POST[VarName] syntax for posting info between forms or what ever.

it just takes in the input name and uses that

ie: $newName=$passedInName;

You get the idea.

Will I have to spend endless hours updating my code or will it be alright.

phpScott
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

It depends whether they leave register_globals off or turn it on for you - if they turn it on you shouldn't have any problems. Of course you really should start converting your scripts to not having to rely on register_globals...

Mac
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

thanks

Post by phpScott »

that is what I thought. groan, moan, cry :(
I am trying to do so now but I also want to keep the code consent when making changes to the older code.



phpScott
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Ask your host to turn register_globals on when they upgrade - most hosts will because the change will affect a lot of people, then you'll have some breathing space in which to upgrade.

Mac
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

thanks

Post by phpScott »

Cheers thanks it will still mean eventally endless hours of re programming but I guess some time is better then no time at all.

phpScott
Post Reply