PHP4 to PHP5

Discussion in 'PHP' started by hand, May 25, 2011.

  1. #1
    I have a site http://tinyurl.com/ylrbzlg and I am being told where it's hosted that PHP4 support is going away and the site has to be changed to PHP5.

    Can someone tell me what all that means? I had the site custom made and no idea what would have to be changed to make it compatible with PHP5.

    Thks
     
    hand, May 25, 2011 IP
  2. zcorp

    zcorp Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What your server application?
    Apache, cPanel, or PLesdesk?
     
    zcorp, May 25, 2011 IP
  3. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #3
    there are certain functions in php4 which have been replaced by new

    php5 is much faster and stable

    now a days all servers using php5

    Regards

    Alex
     
    kmap, May 25, 2011 IP
  4. ntomsheck

    ntomsheck Peon

    Messages:
    87
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Most of your functions will remain the same. Turn off error display (if it's turned on) and have all errors sent to an error log behind the scenes (look up custom error handlers). Most often, it's regex statements that will cause problems. ereg has been replaced with preg. Your ereg will still work, but it'll give an error every time it's called (stating that it's been deprecated). There are other functions that might fail, depending on how deep into PHP's features your site went, but the most common stayed the same (if/then/else, sessions/cookies, switch/case, variables, file handling, DB functions).
     
    ntomsheck, May 25, 2011 IP
  5. hand

    hand Well-Known Member

    Messages:
    658
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #5
    work completed
     
    hand, Jun 2, 2011 IP