473,395 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

PHP4->PH5 tutorial


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
5 2320
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

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
>
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Johan den Boer | last post by:
Hi, Tried installation with apache 2.0.47. But nothing is working. Copied all the dll's and .ini file to the right locations. Changed the httpd.conf file as well. Here is what I added in...
1
by: Brian Tozer | last post by:
On http://www.phpdeveloper.org/section/tutorial/43 there is what seems like a good tutorial for a beginner but there is no mention of whether it should all be within one .html file, one .php file,...
18
by: vrillusions | last post by:
I've been using functions since I first started using php, but I've been hearing more and more about classes, which I never really looked at that much. I understand the whole OO programming...
0
by: Andrew Crowe | last post by:
Hi guys, As PHP5 is on its final beta, we decided to start writing a web application in it to take advantage of the much better object support it offered. We're running the...
5
by: Mike | last post by:
We want to set up a PHP server for instructors to teach PHP, but different instructors have different needs. Is it possible to install PHP 4.3.8 *and* PHP 5 on the same machine? Perhaps using...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
4
by: Phil Latio | last post by:
Firstly, is the following code allowed assuming the addContent function expects as single argument? $page->addContent($form = new Form()); Secondly, I've been reading a tutorial and noticed the...
17
Motoma
by: Motoma | last post by:
This article is cross posted from my personal blog. You can find the original article, in all its splendor, at http://motomastyle.com/creating-a-mysql-data-abstraction-layer-in-php/. Introduction:...
1
by: Robert K S | last post by:
Continuing from the thread of last February (2008) started here: http://tinyurl.com/6pvbgk (Google Groups link) Setup: I have a big tree of "if" statements (imagine the PHP code version of a...
6
by: kout | last post by:
Hey I've got a mysql query that I'd like to process *only* if a javascript if is true. Is that possible? Something like this: <script language="javascript"> if (condition is true) { <?php...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.