![]() |
| HTML | PHP Scripts | Webmaster Tools | Webmaster Forums | Web Hosting | Domain Names | Webmaster Books |
|
|
#1 |
|
New Member
Join Date: Aug 2008
Webmaster Discussions: 11
Rep Power: 13 ![]() |
What is the difference between PHP 4 and 5?
Could share with thoughts about the difference between PHP 4 and 5 versions.
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Aug 2008
Webmaster Discussions: 21
Rep Power: 13 ![]() |
Re: What is the difference between PHP 4 and 5?
I think that you can search this information in Google, it will give the best answer.
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Aug 2008
Webmaster Discussions: 11
Rep Power: 13 ![]() |
Re: What is the difference between PHP 4 and 5?
Thanks for your help. I will follow your advices.
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Dec 2008
Webmaster Discussions: 8
Rep Power: 11 ![]() |
Re: What is the difference between PHP 4 and 5?
Is it post filling?
Use php.net to learn php.
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Oct 2009
Webmaster Discussions: 7
Rep Power: 6 ![]() |
Re: What is the difference between PHP 4 and 5?
One important difference is that PHP4 is deprecated and won't be supported after a while, whereas PHP5 is not and will continue to receive updates after the developers abandon PHP4.
|
|
|
|
|
|
#7 |
|
New Member
Join Date: Mar 2009
Location: Westminster, MD
Webmaster Discussions: 19
Rep Power: 10 ![]() ![]() |
I remember one important thing happened when I upgraded my servers from php4 to php5 - it broke my website pages that passed variables.
It was my own incomplete coding I guess, but it had worked fine until then. After php5, I had to use $_GET and $_POST at the beginning of (or in the code of) any web page that I used passed variables on, or they would not be passed. It was a major change in the way I coded pages, and, as I said, broke all my websites that passed variables from one page to another. Hopefully it helps someone. ***On a side note, I also have noticed that with newer browsers, a lot of old javascript scripts are broken because they weren't written with semantic code, but code that "worked", so they have to be carefully gone over and rewritten as well. |
|
|
|
|
|
#8 |
|
New User
Join Date: Jan 2010
Webmaster Discussions: 9
Rep Power: 4 ![]() |
Re: What is the difference between PHP 4 and 5?
in the object model in php4 we pass everything including objects also by value ..
in php5 we pass by reference.. php5 provides to use class constants and allows static properties or methods.. class metods and properties have visibility in php5 |
|
|
|
![]() |
| Bookmarks |
| Tags |
| difference, php |
| Thread Tools | |
| Rate This Thread | |
|
|
Similar Webmaster Discussions
|
||||
| Thread | Webmaster Discussion Starter | Forum | Replies | Last Post |
| Auto Surfing Verses Manual Surfing..What's The Difference? | WebsiteMarketing | Website Promotion Forum | 2 | 11-07-2007 03:42 PM |