• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

PHP 4 to PHP 5

What difference are there in PHP 5 compared with PHP 4?.  The reason I am asking is that the host for my website has upgraded to PHP 5 and some of the PHP stuff I downloaded only works in PHP 4.

Is it a major task to change something to work in PHP 5?  (As it is a free, the company is unlikely to make the changes, at least at the moment, to get this to work).

Sorry about being a bit vague.

Thanks
0
Expressions
Asked:
Expressions
  • 2
  • 2
1 Solution
 
Diablo84Commented:
The manual at the official PHP website answers your question for the best part...

Migrating from PHP 4 to PHP 5 :: http://www.php.net/manual/en/migration5.php#migration5.changes
Backward Incompatible Changes :: http://www.php.net/manual/en/migration5.incompatible.php

The latter link specifying some of the things you should pay close attention to.

The biggest change between PHP4 and PHP5 is that the handling of objects (OOP - Object Oriented Programming) was completely rewritten making big big improvements.

>> Is it a major task to change something to work in PHP 5?

No. That is to say, if your code is well written in the first place it should generally work fine on both versions.
0
 
ExpressionsAuthor Commented:
I haven't forgotten about this, I just haven't had a huge amount of time to deal with it. Sorry!!!
0
 
Diablo84Commented:
No problem, Expressions. thank you for dropping by to let me know.

Diablo84
0
 
ExpressionsAuthor Commented:
Sorry for being so long at answering this.

The link was useful, but the code I was looking at needed so much work it just wasnt worth bothering with.

Thanks for your help.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now