48 users online (1 members and 47 guests)  


  Results 1 to 12 of 12

Related

  1. What is difference between Seo and PPC    Forum: Search Engine Optimization - SEO - Forum
    Replies: 10
  1. #1
    UncleSam's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    11

    What is the difference between PHP 4 and 5?

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

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: What is the difference between PHP 4 and 5?

    There is actually a pretty good description of it all at wikipedia.

  3. #3
    VIP's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    21

    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. #4
    UncleSam's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2008
    Posts
    11

    Re: What is the difference between PHP 4 and 5?

    Thanks for your help. I will follow your advices.

  5. #5
    Maldrex's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2008
    Posts
    8

    Re: What is the difference between PHP 4 and 5?

    Is it post filling? Use php.net to learn php.

  6. #6
    benivolent's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2009
    Posts
    7

    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. #7
    markei's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Location
    Westminster, MD
    Posts
    19

    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.

  8. #8
    carolin's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2010
    Posts
    9

    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

  9. #9
    pinnacleweb's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jul 2011
    Location
    India
    Posts
    30

    Re: What is the difference between PHP 4 and 5?

    They are the same, but php 5 has improvements in design,
    security, and stability. it is basically a new version.
    Last edited by HTML; 09-03-2011 at 08:07 AM.

  10. #10
    John Irron's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2011
    Posts
    5

    Re: What is the difference between PHP 4 and 5?

    Quote Originally Posted by carolin View Post
    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
    Yes, that's true about php4 and php5, very nice info.

  11. #11
    stephen011's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2011
    Location
    Santa Ana,CA, USA
    Posts
    21

    Re: What is the difference between PHP 4 and 5?

    The main differences between PHP4 and PHP5 are the way handled in the configuration, functions, expression. The new OOP features in PHP5 is available.

  12. #12
    stephenwillia,s's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2011
    Posts
    1

    Re: What is the difference between PHP 4 and 5?

    There are several differences in the configuration and in the way certain functions and expressions are handled. PHP 4 has a larger installed base at this point, but since PHP is a server side script, it will hardly affect the end user. PHP 5 is simply a newer release, which offers its own improvements and add-ons. However, there might be some incompatibility issues when certain applications are run on both versions. You should use PHP 5 only if it is required by the script author.



Tags for this Thread