Upgrading php 4 to php 5

Discussion in 'PHP' started by bartolay13, Feb 7, 2008.

  1. #1
    i scripted my web page using OOP, works fine to my localhost
    and when i try to upload it into my host it shows this errors.

    the host is using version 4 for php.. and there an option whether to enable php 5 or not...

    this is my question..
    will there be some script from php 4 that will be unreadable for php 5 (there is an existing assessment exam in my host version php4).?????

    im thinking it might cause some errors when upgrading...
     
    bartolay13, Feb 7, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    I highly recommend upgrading your host to PHP 5. (PHP 4 is officially unsupported now).

    Most scripts written for PHP 4 will still work in PHP 5. There might be some exceptions, but you shouldn't face any major problems. And if you do, they probably can be fixed easily.
     
    nico_swd, Feb 8, 2008 IP