Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Apr 2015
    Location
    New Delhi
    Posts
    679

    What is the difference between PHP4 and PHP5.

    Hello Friends,

  2. #2
    Member
    Join Date
    Jun 2015
    Location
    Thailand
    Posts
    89
    PHP5 removed register_globals, magic quotes, and safe mode. This was due to the fact that register_globals had opened security holes by intentionally allowing runtime data injection and the use of magic quotes had an unpredictable nature.

  3. #3
    Registered User
    Join Date
    Aug 2015
    Location
    Singapore
    Posts
    53
    I have no ideas.

  4. #4
    Junior Member
    Join Date
    Jul 2015
    Posts
    19
    I would also like to know the answer to this.

  5. #5

  6. #6
    Registered User
    Join Date
    Sep 2015
    Posts
    270
    PHP4 is more of a procedure language while PHP5 is object oriented.
    In PHP5 one can declare a class as Abstract.
    PHP5 incorporates static methods and properties.
    PHP5 introduces a special function called __autoload()
    PHP5 allows one to declare a class or method as Final

  7. #7
    Senior Member
    Join Date
    Jul 2015
    Location
    Brooklyn, USA
    Posts
    333
    Some differences between PHP4 and PHP5 :

    1. PHP5 removed register_globals, magic quotes, and safe mode. This was due to the fact that register_globals had opened security holes by intentionally allowing runtime data injection and the use of magic quotes had an unpredictable nature.

    2. PHP4 was powered by Zend Engine 1.0, while PHP5 was powered by Zend Engine II.
    3. PHP5 replaced magic quotes with the addslashes() function in order to escape characters.
    4. PHP4 is more of a procedure language while PHP5 is object oriented.

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
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.