"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Go Back   Webmaster Forums > Code Forum > PHP Forum

Reply
 
Thread Tools Rate this Webmaster Discussion
Old 09-12-2008, 09:46 AM   #1
UncleSam
New Member
 
Join Date: Aug 2008
Webmaster Discussions: 11
Rep Power: 13
UncleSam is on a distinguished road
What is the difference between PHP 4 and 5?

Could share with thoughts about the difference between PHP 4 and 5 versions.


UncleSam is offline   Reply With Quote
Old 09-12-2008, 11:14 AM   #2
jthayne
 
jthayne's Avatar
 
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 501
Rep Power: 21
jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.
Re: What is the difference between PHP 4 and 5?

There is actually a pretty good description of it all at wikipedia.
jthayne is offline   Reply With Quote
Old 09-30-2008, 07:06 AM   #3
VIP
New Member
 
Join Date: Aug 2008
Webmaster Discussions: 21
Rep Power: 13
VIP is an unknown quantity at this point
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.
VIP is offline   Reply With Quote
Old 10-03-2008, 09:00 AM   #4
UncleSam
New Member
 
Join Date: Aug 2008
Webmaster Discussions: 11
Rep Power: 13
UncleSam is on a distinguished road
Re: What is the difference between PHP 4 and 5?

Thanks for your help. I will follow your advices.
UncleSam is offline   Reply With Quote
Old 12-27-2008, 11:24 PM   #5
Maldrex
New Member
 
Join Date: Dec 2008
Webmaster Discussions: 8
Rep Power: 11
Maldrex is on a distinguished road
Re: What is the difference between PHP 4 and 5?

Is it post filling? Use php.net to learn php.
Maldrex is offline   Reply With Quote
Old 10-12-2009, 01:34 AM   #6
benivolent
New Member
 
Join Date: Oct 2009
Webmaster Discussions: 7
Rep Power: 6
benivolent is on a distinguished road
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.

benivolent is offline   Reply With Quote
Old 01-16-2010, 10:24 AM   #7
markei
New Member
 
Join Date: Mar 2009
Location: Westminster, MD
Webmaster Discussions: 19
Rep Power: 10
markei has a spectacular aura aboutmarkei has a spectacular aura about
Exclamation Re: What is the difference between PHP 4 and 5?

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.
markei is offline   Reply With Quote
Old 01-21-2010, 04:16 AM   #8
carolin
New User
 
Join Date: Jan 2010
Webmaster Discussions: 9
Rep Power: 4
carolin is on a distinguished road
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
carolin is offline   Reply With Quote
Reply

Bookmarks

Tags
difference, php

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -5. The time now is 08:53 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.