Page 1 of 1

php upgrade

Posted: Fri Apr 25, 2003 2:44 pm
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

Posted: Sat Apr 26, 2003 5:01 am
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

thanks

Posted: Sat Apr 26, 2003 5:14 pm
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

Posted: Sun Apr 27, 2003 3:40 am
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

thanks

Posted: Tue Apr 29, 2003 5:06 pm
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