Install PHP4 or PHP5?

Discussion in 'PHP' started by mudanoman, Jun 11, 2007.

  1. #1
    Hi,

    I am curious if there is a difference in installing either version. I believe my current codes are written with php4 (php_mode).

    Thanks!

    -newbie
     
    mudanoman, Jun 11, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    You should use php5 if you can, most code doesn't require changing if it was written for 4 and you use 5, problems only arrise when code is written for 5 and you want to use it with 4.
     
    krakjoe, Jun 11, 2007 IP
  3. coderbari

    coderbari Well-Known Member

    Messages:
    3,168
    Likes Received:
    193
    Best Answers:
    0
    Trophy Points:
    135
    #3
    You should use PHP5.
    krakjoe told the fact.
    try to be update man :D
     
    coderbari, Jun 12, 2007 IP
  4. jamix

    jamix Peon

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I suggest you use PHP 5 too. As I mentioned in some different post, it has a better object model, is way faster and handles XML via it's DOM better than PHP4 and its domxml.
     
    jamix, Jun 13, 2007 IP
  5. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Before you up and upgrade check out php.net/manual/en/migration5.php . There are changes that could require you to make small code changes. Now if you do upgrade and you use OO you will see a small speed increase.
     
    InFloW, Jun 13, 2007 IP
  6. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I agree but, this will be visible only in benchmark tests, i doubt that your site visitor will see any difference.
     
    Greg Carnegie, Jun 13, 2007 IP
  7. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yeah it would just come down to supporting more visitors a day on the same machine. So just less resources being consumed
     
    InFloW, Jun 13, 2007 IP
  8. 4GU.RU

    4GU.RU Member

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #8
    PHP 5 new way ...
     
    4GU.RU, Jun 13, 2007 IP