473,396 Members | 1,707 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,396 software developers and data experts.

PHP 5: Will it hurt?

Hi all,

I'm currently on using PHP 4. (what ever the
latest is) and I'm looking at moving to PHP5. Just
wondering, should I have moved by now? is there a
lot of people out their holding back?

My biggest worry is will it break my site? I had a
quick wonder through the Release notes and it
doesn't look like any functions I normally use
have been taken out. Just looking for some
feedback. and what it has done to others.
Aug 26 '05 #1
4 1168
Smitro wrote:
Hi all,

I'm currently on using PHP 4. (what ever the latest is) and I'm looking
at moving to PHP5. Just wondering, should I have moved by now? is there
a lot of people out their holding back?

My biggest worry is will it break my site? I had a quick wonder through
the Release notes and it doesn't look like any functions I normally use
have been taken out. Just looking for some feedback. and what it has
done to others.


Smitro,

There are some changes in PHP5. You'll want to go eventually, but only you can
decide if now is the right time. It all depends on your site and what it does.

If you do change, ensure you do a lot of testing before you go "live". It's the
things that 'shouldn't affect you' which will get you every time!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 26 '05 #2
> It's the things that 'shouldn't affect you' which will get you every time!

True, true.
Aug 26 '05 #3
On Sat, 27 Aug 2005 07:38:46 +1000, Smitro <no****@myh0use.c0m> wrote:
I'm currently on using PHP 4. (what ever the
latest is) and I'm looking at moving to PHP5. Just
wondering, should I have moved by now?
I'm currently do all new development in PHP5.
is there a
lot of people out their holding back?
All my old sites are running PHP4 with absolutely no intention of
upgrading them to PHP5. Too much trouble.
My biggest worry is will it break my site?


Probably. PHP5 has a different (better) way of doing a lot of stuff.
However, they have taken lots of care in working on backwards
compatitibly. Your best bet is move your site to PHP5 in a test
environment and make the necessary modifications to have it work
right. If you don't use objects/classes you might not have to change
anything at all.

Aug 26 '05 #4
Smitro wrote:
Hi all,

I'm currently on using PHP 4. (what ever the latest is) and I'm looking
at moving to PHP5. Just wondering, should I have moved by now? is there
a lot of people out their holding back?

My biggest worry is will it break my site? I had a quick wonder through
the Release notes and it doesn't look like any functions I normally use
have been taken out. Just looking for some feedback. and what it has
done to others.


Hi Smitro,

I think upgrading is not a big issue for most people because website
hosting providers do not seem to be very quick with upgrading their
hosting services. But php5 is included in Fedora core 4, which was
annouced in june 2005, so maybe things are about to change.

If you are not using objects, there is a good chance that it will simply
work. But to prevent possible problems you can look into
http://www.php.net/manual/en/migrati...compatible.php and search your
code for the use of variables and functions that are not entirely
compatible (With an editor like UltraEdit searching all files in a
folder and all its subfolders is easy). Probably your code does not do
the kind of things that are no longer supported. But if you are not
sure, you can prevent them from breaking your code by adding some
conditions that check for situations that will become a problem in php5
and log them if they occur. Then you put it to run on your site, still
on php4, wait for several weeks, then download the problems log. If you
use the same function for all logging, it should be easy enough to find
and remove the logging code after you upgraded to php5.

And even if you do use objects: with phpPeanuts i have managed to make
allmost the entire framework portable: it does the same on both php4 and
php5. This took several days work, but OK, this is hundreds of Kbs of
OOP code. I ended up with only a few functions that are version specific
and the framework now automatically loads the right implementation. And
of course there are a few rules to attend if you want your own
applications to be portable too. If you need your site to be portable,
you can download a portable version and take a look at it, the version
specific functions are included from classes/generalFunctions.php and
there the readme has a section on portability.

Greetings,

Henk Verhoeven,
www.phpeanuts.org.

Aug 27 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daniel Bickett | last post by:
I was reading the "Pickling and inheritance are making me hurt" thread, and the latest suggestion (as of this posting) was to do with the __setstate__ and __getstate__ methods. They caught my...
2
by: Marc | last post by:
I am trying to create a new window from which the original page can close that new window. For some reason the following code will not work. Passing the window.open command to a variable called...
2
by: Doc | last post by:
Per earlier post, I am trying to save 'out' production data from a program called Solomon - basically (I think) this was /is an Access/Sql based program. We are updating to different application...
1
by: Julia | last post by:
Hi, I have basic questions regarding ASP.NET site I am going to use Microsoft application configuration block and I wonder 1.does caching read only data in the application can hurt ...
5
by: Alan Howard | last post by:
We're getting "ERROR (0x8007000E) Not enough storage is available to complete this operation" errors on a fairly large, busy ASP/SQL Server web site. The error is being thrown on a line calling...
4
by: Ryan Liu | last post by:
TcpClient has a method called GetworkStream GetStream(); So in other words, there is only one stream associate with it for input and output, right? So while it is receiving, it can not send, and...
11
by: Paul H | last post by:
Suppose I have a table called tblPeople and I want a field to illustrate whether each person prefers cats or dogs. I could do it one of three ways. 1. A plain text field Create a text field in...
21
by: jehugaleahsa | last post by:
Hello: I had an hour-long discussion with my boss today. Last night, right before I dozed off, I realized some of his code resulted in duplicate processing. I tried to explain it to him and he...
3
by: =?Utf-8?B?Sm9obiBCYWlsZXk=?= | last post by:
I am currently evaluating a CMS product. I like the product so far, but one of the restrictions on the product is that it requires that the Windows 2003 application pool be restricted to one...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...
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.