Webmaster Sun Login
Not a member yet? Sign up

What are the differences between PHP3 and PHP4 and PHP5 ?

  • HOME
  • FORUMS
  • BLOGS
  • MARKETPLACE
  • ADVERTISING
  • SPECIAL OFFERS
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 8 of 8
    Stick this thread
  1. #1
    Join Date
    Mar 2013
    Posts
    6
    Thumbs Up/Down
    Received: 0/0
    Given: 0/0
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What are the differences between PHP3 and PHP4 and PHP5 ?

    I'm a new to the PHP thing. I want to try to setup my server to handle PHP3 and PHP4 requests easily. e.g. I have some scripts that are PHP3 and want to start learning PHP4. Instead of doing the simple (like anything I do is simple URL ) thing, I am attempting to set up apache to support MySQL, PHP3, PHP4, SSL, ColdFusion, SteelBlue, and maybe even Frontpage.

  2. #2
    Join Date
    Mar 2013
    Location
    USA
    Posts
    46
    Thumbs Up/Down
    Received: 0/0
    Given: 0/0
    Thanks
    0
    Thanked 2 Times in 2 Posts
    PHP3 is oldest constant version and it was clean technical language constructive like C.

    Where as PHP4 have certain OOPs theory added such as class and object with new functionality.

    PHP5 around every major oops functionality has been added along with below thing :

    1) Implementation of exclusions and exception handling
    2) Type suggesting which permits you to force the type of a exact argument

  3. #3
    Join Date
    Mar 2013
    Posts
    40
    Thumbs Up/Down
    Received: 0/0
    Given: 0/0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP3 stable is the older version was purely procedural language constructive such as C. Where PHP4 and some concept of amnesty and added such class object with a new job.

  4. #4
    Join Date
    Jan 2014
    Posts
    1
    Thumbs Up/Down
    Received: 0/0
    Given: 0/0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    (PHP3 stable is the older version was purely procedural language constructive such as C. Where PHP4 and some concept of amnesty and added such class object with a new job.)


    thank for sharing

  5. #5
    Join Date
    Jun 2017
    Posts
    151
    Thumbs Up/Down
    Received: 61/1
    Given: 38/0
    Thanks
    2
    Thanked 9 Times in 9 Posts
    Well, there are many differences between these three PHP's.

    PHP3- is the oldest one out of the three. Nobody is really using it anymore, neither should you.
    PHP4- second oldest, improved from the PHP3 but still ''worse'' than PHP5 which you should be using.
    PHP5- has the most of the OOP functionality, best performance, most functional overall and is the one you should strive to use.

    If you want a really detailed list, I think that they have one in the manual on the php.net website hope that this was a bit helpful!

  6. #6
    Join Date
    Sep 2017
    Posts
    10
    Thumbs Up/Down
    Received: 1/1
    Given: 0/0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP is a server-side scripting language that is used in website development. PHP4 and PHP5 are two different versions of PHP. PHP4 was first released in May of 2000. PHP5 was later released in 2004 and came powered by the Zend Engine II that is considered by the development community as an improvement over PHP4.

    After various versions of PHP4, the last version titled PHP4.4.9 released in August of 2008. After the last release, it was announced that PHP4 would not longer be developed, including future security updates for the language.

    With the lack of support for PHP4, many new servers are no longer supporting php4 and developers are having to make changes to their websites to support PHP5 instead of PHP4.

  7. #7
    Join Date
    Nov 2012
    Posts
    178
    Thumbs Up/Down
    Received: 9/0
    Given: 117/0
    Thanks
    42
    Thanked 4 Times in 3 Posts
    Quote Originally Posted by Unknown View Post
    Well, there are many differences between these three PHP's.

    PHP3- is the oldest one out of the three. Nobody is really using it anymore, neither should you.
    PHP4- second oldest, improved from the PHP3 but still ''worse'' than PHP5 which you should be using.
    PHP5- has the most of the OOP functionality, best performance, most functional overall and is the one you should strive to use.

    If you want a really detailed list, I think that they have one in the manual on the php.net website hope that this was a bit helpful!
    I agree with this opinion but at this time, I would suggest you forget these PHP version and upgrade to PHp 7
    because my sites are using PHP 7 and they have better performance when using this version.

  8. #8
    Join Date
    Apr 2016
    Location
    United States
    Posts
    578
    Thumbs Up/Down
    Received: 348/0
    Given: 38/0
    Thanks
    29
    Thanked 170 Times in 122 Posts
    I was very surprised reading through all the comments and not one person mentioned the biggest and most important reason for working with the latest versions of most any software language....SECURITY.....

    Do not deploy with PHP versions 3 or 4. There are far too many security issues and they no longer have support in the PHP community. You will also limit yourself in what you can accomplish with those two older languages.

    I have included a high level overview of some of the major changes that occurred in the development of PHP. This is by no way a complete list as that would take days to put together, there have been 10's of thousands of changes to the language just over the last five or six years.


    PHP3 - (No Longer Supported) Oct. 2000, was a good server side language that gave us web developers an opportunity to work with the server side of our applications, this was one of the first languages available to web developers that allowed this, at that time the web was very new and static web pages were the norm. Originally develop as a Personal Home Page language, Rasmus Lerdorf in 1994, he developed the language for his personal use, it worked but had many areas that needed to be developed. There was only one version of PHP3 it was quickly replaced by PHP4 in just a few short months.

    PHP4 - (No Longer Supported) developed and released in May 2001 was a vast improvement to PHP3. Initial types of security was implemented and support of Arrays was added this was a large step forward. Version 4 went through many updates over the years and major upgrades to the language were occurring approximately every 3 months, the PHP group began to grow and the development was very instrumental in the changes that were occurring and the implementation of database support. As popularity grew there were still many issues discovered with the security implementation of the langauge across larger sites. Version 4 was the first version that supported the Apache server configuration, as that was becoming the most popular web server being deployed. Many security issues and numerous language updates occurred throughout the life-cycle of PHP4. The first real SQL middle-ware was developed during version 4 and full support for remote databases was established.

    PHP5 - released in July 2004 this was a major upgrade to PHP. Still under active support. Supported much better error handling, completely rewritten UNIX and Windows handlers, for better speed and security updates. Support for XML files was added in a early version of PHP5 and became very popular as data structure format. Support for SSL was added. Meta tag support was added as SEO became much more important as the web began to grow. Major security issues were addressed with additional support for hashing and the beginnings of the SALT functionality was being added to the language. Throughout the course of the Version 5 development thousands of bugs were addressed and fixed, security were constantly being identified and addressed and speed and 64 bit support were addressed and added. Extensions were added to the language to allow for connections to multiple database architectures and MySQL soon became the most popular database for the web. This still holds true even today although there are new database architectures that are catching up. MD5 encryption scheme was developed and added to PHP5. The popularity of OOP started to drive the development of PHP in a more class based language. As their popularity increased support for JavaScript, jQuery and JSON were added to the language. Version 5 eventually split into 2 separate branches of development, one branch staying in the procedural mode of development and the other working towards a class branch development. The last major update to PHP Version 5 occurred in July of 2017. There are well over 100 versions of PHP5 addressing enhancement to the language and fixing bugs that have been identified.

    PHP6 - never officially released and development scrapped in June 2014.

    PHP7 - Released Dec. 2015. Speed and multi-thread asynchronous support was the major driving factor. Numerous security updates and encryption updates added to the initial release. Growing in popularity but still way behind PHP5 in deployments.

    I hope this helps.
    Mike
    Learn Web Development - OnLine Video Training OnTargetHTML5
    Have Questions On Training or Web Development: Contact Mike

  9. The Following User Says Thank You to Mike001 For This Useful Post:
    harrygreen90 (10-24-2017)

Newer Threads

  1. Sean Bean
    Darius
    Replies: 1 | Views: 2143
    Last post by Darius, 03-10-2013, 12:58 PM
  2. prem_sagar12
    creativesystem
    Replies: 1 | Views: 3111
    Last post by creativesystem, 03-12-2013, 03:18 PM
  3. Devid Kenny
    pramod
    Replies: 2 | Views: 2843
    Last post by pramod, 03-05-2013, 08:22 AM
  4. Herry Thomas
    tayloralina
    Replies: 3 | Views: 1734
    Last post by tayloralina, 04-02-2013, 08:43 AM
  5. Randy Wilson
    Carl0251
    Replies: 24 | Views: 9187
    Last post by Carl0251, 03-10-2015, 01:12 AM

Older Threads

  1. Sean-P
    LindaH
    Replies: 2 | Views: 4332
    Last post by LindaH, 08-28-2013, 07:14 AM
  2. Dmoz
    Dmoz
    Replies: 0 | Views: 2492
    Last post by Dmoz, 03-05-2013, 06:44 AM
  3. GDesign
    vincent007
    Replies: 7 | Views: 3043
    Last post by vincent007, 02-20-2018, 04:20 AM
  4. soThink
    soThink
    Replies: 0 | Views: 2054
    Last post by soThink, 02-26-2013, 02:17 PM
  5. alanmark
    kristin123
    Replies: 15 | Views: 10258
    Last post by kristin123, 03-06-2014, 09:41 AM

Latest Threads

  1. Nemanja
    fromrachel
    Replies: 1 | Views: 13
    Last post by fromrachel, Today, 03:34 AM
  2. Marc van Leeuwen
    Marc van Leeuwen
    Replies: 0 | Views: 11
    Last post by Marc van Leeuwen, Today, 03:16 AM
  3. Nemanja
    Marc van Leeuwen
    Replies: 1 | Views: 15
    Last post by Marc van Leeuwen, Today, 03:11 AM
  4. JeetWin
    Nemanja
    Replies: 1 | Views: 83
    Last post by Nemanja, Yesterday, 06:01 AM
  5. JeetWin
    JeetWin
    Replies: 0 | Views: 51
    Last post by JeetWin, Yesterday, 04:52 AM

Similar Threads

  1. KellyLC
    rohanjain
    Replies: 6 | Views: 2550
    Last post by rohanjain, 05-01-2014, 04:19 AM
  2. Sean Bean
    erinnagata
    Replies: 16 | Views: 7611
    Last post by erinnagata, 03-07-2014, 02:05 AM
  3. williamdaniel868
    Differences between MSN and Yahoo
    By williamdaniel868 in forum Yahoo
    Shirley_Sharp
    Replies: 3 | Views: 2586
    Last post by Shirley_Sharp, 12-18-2013, 10:06 AM
  4. shophia
    Inquestor
    Replies: 4 | Views: 2295
    Last post by Inquestor, 10-05-2013, 07:27 PM
  5. Andre
    Bradley
    Replies: 3 | Views: 1873
    Last post by Bradley, 01-23-2013, 06:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Internet Marketing Forum

Webmaster Sun is a forum where you’ll find in-depth discussions and resources to help you succeed on the web whether you are new or experienced. You’ll find it all here. With topics ranging from internet marketing, search engine optimization, social networking, make money online, web hosting, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Come Hang Out With Us

    Facebook Twitter Webmaster Forum Google+

    Webmaster Sun Logo
Copyright ©2012 - 2018, WebmasterSun.com. All rights reserved. Internet marketing forum for internet marketers, webmasters, web hosting providers, designers and affiliate marketers.

Welcome to Webmaster Sun

The World's Number 1 Webmaster Community, SEO and Marketplace

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!