Host doesn't run PHP 5?

Discussion in 'PHP' started by dp-user-1, Jun 12, 2007.

  1. #1
    Would any reputable host still run 4.4.4 as their latest version?
     
    dp-user-1, Jun 12, 2007 IP
  2. mrmonster

    mrmonster Active Member

    Messages:
    374
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    If a reputable host needs PHP4 support to keep older clients happy they would install PHP5 along side it and show the users how to make use of both.

    PHP4 is so 3 years ago.
     
    mrmonster, Jun 12, 2007 IP
  3. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Lots of hosts still run 4.4 :D

    We only upgraded to default PHP5 very recently. But yeah, you can make use of both providing you set it up correctly.
     
    Kalyse, Jun 12, 2007 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #4
    PHP4 is still being developed, theres no reason not to have it installed.

    If the host doenst know php, then they aren't going to fancy all the problems that arise when they upgrade thier machine to a new version of php, the problems dont arise with professionally written scripts they arise with personal websites and snippets of code, and if you don't know how to fix that then it would be a pretty stupid decision to break it.

    You can built php5 as a CGI and run it alongside php4 ( so long as php4 is an apache dso and not a cgi binary ), that's what they should do really, it's not difficult to build php like that, and there are scripts available to do it for you/them.
     
    krakjoe, Jun 13, 2007 IP
  5. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The best way to avoid problems with the whole PHP4 + PHP5 thing is to simply have both. This is what we do to avoid this exact problem. PPHP4 is an apache module and PHP5 is a CGI binary. The user wants php5 they specify .php5 or they make a .htaccess with the following:
    AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml


    From there they could use .php, .php4 ect. and it should go to php5
     
    InFloW, Jun 13, 2007 IP
  6. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes most hosts run PHP4 as their latest / default, but most decent hosts also run it alongside PHP5 to allow both to be ran (since in reality theres no real reason not to use PHP5 except older scripts).

    InFloW covered it :)
     
    CodyRo, Jun 13, 2007 IP
  7. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #7
    I don't, I haven't had php4 since php5.0.1 was released, but then I'm confident I can fix any problems that arise by doing that, and a lot of hosts dont have that so they keep it.....

    There's nothing wrong with php4, it's still a real powerful language, and most of the c code that makes 4=5 can be rewritten in php, or downloaded from PEAR ( written by someone else ), or written yourself if you know some c/php......
     
    krakjoe, Jun 13, 2007 IP
  8. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Right, but my host told me that 4.4.4 was the latest version they had. It took them three weeks to give me this response, and I recently made the request to be moved to a PHP 5 server where I was again promised that it would take no more than a day.

    We'll see how things go. Maybe it's time I found a new host.
     
    dp-user-1, Jun 13, 2007 IP
  9. mrmonster

    mrmonster Active Member

    Messages:
    374
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #9
    Maybe your hosting company is just using CPanel, or some other control panel, to manage their servers, which until a few days ago officially supported PHP4 only.

    They just don't want to get their hands dirty or don't have he confidence that they can do it safely.
     
    mrmonster, Jun 13, 2007 IP
  10. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #10
    whm has had the ability to build php5 for over a year now .....
     
    krakjoe, Jun 13, 2007 IP
  11. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #11
    cPanel supports PHP5 and has for ages you just need to recompile apache using easyapache. Now what it does not support is compiling 2 php versions at once. Of course most cPanel hosts have managed to install both 4 and 5 anyways using guides so I don't think it's a good excuse.
     
    InFloW, Jun 13, 2007 IP