By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

PHP4->PH5 tutorial

P: n/a

Hi,

Seen that support for PHP4 will be dropped at the end of the year I was
thinking that maybe now might be a good time to start moving things.

Is there a tutorial as to what I need to look out for?

And, Could I run both version on my test server? Or do I need to have
to Apache servers running?

Any suggestions/sites?

Thanks

FFMG
--

'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
(http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php)
'Free URL redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=18932

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

Jul 31 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Is there a tutorial as to what I need to look out for?
Migrating from 4 to 5 from the bible: http://us3.php.net/manual/en/migration5.php
And, Could I run both version on my test server?
yes.
http://devzone.zend.com/article/633-...od-old-port-80
http://www.k4ml.com/node/125

hurray, google!

Jul 31 '07 #2

P: n/a

ELINTPimp;84307 Wrote:
>
Is there a tutorial as to what I need to look out for?

Migrating from 4 to 5 from the bible:
http://us3.php.net/manual/en/migration5.php
Thanks, I'll have a look.
But this is more of a "what's new" rather than "how to successfully
move a big site".

ELINTPimp;84307 Wrote:
hurray, google!
Really? When I looked I found 2 million useless tutorials.

FFMG
--

'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
(http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php)
'Free URL redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=18932

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

Jul 31 '07 #3

P: n/a
>
ELINTPimp;84307 Wrote:
hurray, google!

Really? When I looked I found 2 million useless tutorials.
Yes, but it got them to you in 1.2 seconds! =)

What exactly are you looking for as far as the migration goes? The
actual migration of the core PHP4 to PHP5 on the server...or making
sure your existing code will play nicely under PHP5?

The former is addressed nicely in the php.net manual. The latter is
also addressed, but a bit more difficult to undertake and you have to
weigh your options before undertaking them. For example, during our
migration from 4 to 5 some time back, we did something simple (i
wasn't there at the time, but this is what they decided): All the
programs currently running on PHP4 will stay PHP4. Most applications
were as feature rich as they were going to get and we maintain those
apps. All new applications are made with PHP5. Yes, PHP4 is no
longer supported...but that doesn't mean it's going to break over
night.

However, if you plan on maintaining those applications for years to
come, and continue to build on them providing modern features...then
you have a good case to migrate...and I don't know if you'll find a
better detailed resource than the migration manual.
http://us3.php.net/manual/en/migrati...compatible.php

I hope this helped, although it really wasn't exactly what you asked
for.

Regards,

Steve

Aug 1 '07 #4

P: n/a

ELINTPimp;84364 Wrote:

ELINTPimp;84307 Wrote:
hurray, google!
Really? When I looked I found 2 million useless tutorials.
Yes, but it got them to you in 1.2 seconds! =)
Yes, Google is not as fast as I remember :)

ELINTPimp;84364 Wrote:
>
What exactly are you looking for as far as the migration goes? The
actual migration of the core PHP4 to PHP5 on the server...or making
sure your existing code will play nicely under PHP5?
...
Sorry I wasn't clear enough earlier.
What I want to do is 'upgrade' my site from PHP4 to PHP5.

But my site is busy(ish) and I don't want to take the site down any
longer than I need to.

With that in mind I would like to run the site on a test server for a
couple of months, (maybe not that long), to make sure that it works on
PHP4 and PHP5.
This is why I would need to run both version on one server, (I could
use more than one server but it is a bit of a pain to develop that
way).

Once I am confident that everything is running fine then I can
'briefly'<sictake the site down, and upgrade to PHP5.

And...TADA... everything should be fine.

FFMG
--

'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
(http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php)
'Free URL redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=18932

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

Aug 1 '07 #5

P: n/a
On Aug 1, 3:04 am, FFMG <FFMG.2um...@no-mx.httppoint.comwrote:
ELINTPimp;84364 Wrote:
ELINTPimp;84307 Wrote:
hurray, google!
Really? When I looked I found 2 million useless tutorials.
Yes, but it got them to you in 1.2 seconds! =)

Yes, Google is not as fast as I remember :)

ELINTPimp;84364 Wrote:
What exactly are you looking for as far as the migration goes? The
actual migration of the core PHP4 to PHP5 on the server...or making
sure your existing code will play nicely under PHP5?
...

Sorry I wasn't clear enough earlier.
What I want to do is 'upgrade' my site from PHP4 to PHP5.

But my site is busy(ish) and I don't want to take the site down any
longer than I need to.

With that in mind I would like to run the site on a test server for a
couple of months, (maybe not that long), to make sure that it works on
PHP4 and PHP5.
This is why I would need to run both version on one server, (I could
use more than one server but it is a bit of a pain to develop that
way).

Once I am confident that everything is running fine then I can
'briefly'<sictake the site down, and upgrade to PHP5.

And...TADA... everything should be fine.

FFMG

--

'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory'
(http://www.webhostshunter.com/) | 'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php)
'Free URL redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile:http://www.httppoint.com/member.php?userid=580
View this thread:http://www.httppoint.com/showthread.php?t=18932

Message Posted via the webmaster forumhttp://www.httppoint.com, (Ad revenue sharing).
Ah, ok. You want info on how to run 4 & 5 concurrently on a
webserver...what is your OS and web server? I can point you in the
direction for server-specific information on how do to this.

As far as a tutorial on how to make your code work, I really can't
help you there. Best I can suggest is do exactly what you
planned...stand up that php5 server (using it on your current server
is not only convent and cost effective, but it really can't get any
more of the "production-like" environment). There are negative
aspects and you must weigh them, too. You'll probably have two code
bases then, since you'll want/need to maintain you current site and a
second code base to make the necessary changes to work with PHP5. If
you're a single programmer/maintainer, shouldn't be TOO bad, but if
not you may want to invest some time in research a solution to
maintain changes in the two separate bases (versioning software, etc).

I really stress, though, that the PHP manual should give you
everything you need (although, it is a bit dry unlike a (typical)
tutorial). Read through it and if you still don't feel comfortable,
perhaps you may invest in getting a PHP consultant to do an assessment
for you.

Aug 3 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.