PHP4 -> PHP3

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
EricGen
Forum Newbie
Posts: 11
Joined: Tue Jul 15, 2003 4:18 am

PHP4 -> PHP3

Post by EricGen »

Hi,

I have to move some scripts from a server with php4 to one with php3. No problem with things like foreach but all my scripts are based on session variables using session_start. What's the easiest way to change that code in php3?

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

Post by twigletmac »

Eek - any reason why the PHP3 people can't upgrade, considering PHP 5 is working it's way towards completion they are fairly out of date.

However, as upgrading isn't always an option (legacy systems and all that), I think you'll find yourself reverse engineering via the migrating docs on PHP.net:
http://www.php.net/manual/en/migration4.php

Good luck,

Mac
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

i have to agree with twig: ask about upgrading before you go downgrading
Post Reply