help on migrating from php4 to php5

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

fazbob
New php-forum User
New php-forum User
Posts: 13
Joined: Fri Sep 03, 2004 5:51 am

help on migrating from php4 to php5

Postby fazbob » Mon Sep 06, 2004 6:21 am

Hi all,

Firstly how do i confirm which php is installed on my server? i just joined this company recently and thats when i started using php, and its excellent!!
so how can i check which version of php is installed?

Secondly, i need an easy step-by-step guide (for a php newbie) on how to migrate from php 4 to php 5. The main reason i want to migrate is coz of the simpleXML extension, which i suppose is not in the previous versions, ya? is there any other easy alternative to simpleXML? (that is if we dont end up migrating to php5 soon).

ur help will be of great help.

thanx

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: help on migrating from php4 to php5

Postby WiZARD » Tue Sep 07, 2004 4:47 am

first: you can view info about version php in command line like php.exe -v
or create file like with content like <?php phpinfo(); ?> and run it

second: I reccomend firsly learn php4 coz not all hosters use php5

JasonMichael
New php-forum User
New php-forum User
Posts: 2
Joined: Fri Sep 24, 2004 10:17 am

Postby JasonMichael » Fri Sep 24, 2004 1:05 pm

Another thing to consider - your PHP4 code may not port over to PHP5, easily. I have some classes written in PHP4 that PHP5 won't run (it complains). I ended up putting PHP4 back on my server, as I was building a development server according to a deadline.


Return to “PHP Installation”

Who is online

Users browsing this forum: No registered users and 1 guest

cron