473,804 Members | 3,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2367
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'<sicta ke 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.co mwrote:
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'<sicta ke 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.c om, (Ad revenue sharing).
Ah, ok. You want info on how to run 4 & 5 concurrently on a
webserver...wha t 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
2601
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 httpd.conf LoadModule php4_module "c:/php/sapi/php4apache2.dll" ScriptAlias /php4/ "C:/php"
1
1845
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, or several separate files, and if so, what type. It also includes Action="form2.php3" with no mention of what this file is. Can anyone help, or alternatively recommend a more complete Form tutorial for an absolute PHP beginner? Thanks Brian...
18
8741
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 aspect, but are there any advantages to having classes as opposed to just functions? I've heard that the classes are better because they only load the functions they need to, where with an include file of functions, the whole page gets loaded, even if...
0
3113
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 php-5.0.0b3-Win32.zip installation on a Win2K server platform alongside PHP4. I have used a hex editor to change instances of php.ini to ph5.ini in php4ts.dll so that the existing PHP4 installation is not affected.
5
2298
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 different ports or something to keep them separated? I have a Windows 2003 Server running IIS6. Thanks.
11
9280
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
4
1281
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 use of an "&" in front of the word "new" when instantiating a new object. See example below, I just wondered what is it's significance? The code was purely a snippet. $textField1 = &new inputTextObject("blah", "blah", "blah"); Cheers
17
46572
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: The goal of this tutorial is to design a Data Abstraction Layer (DAL) in PHP, that will allow us to ignore the intricacies of MySQL and focus our attention on our Application Layer and Business Logic. Hopefully, by the end of this guide, you will...
1
1401
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 choose-your-own-adventure story) and I want to be able to tell which end-branch I've reached. Right now, l have all the end- branches numbered with integers, and the integer of the end branch is returned.
6
3276
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 $query = "UPDATE table SET example = '3' WHERE id = '1'";
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9572
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10070
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.