Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Php5

  1. #1
    AsdaLegend is offline Nearly a Glow Sage
    Join Date
    Nov 2007
    Posts
    17

    Default Php5

    Hello,

    I wanted to use PHP5 for all my applications. Does it run on PHP5 by default or do I have to change something?

    Thanks!

  2. #2
    charlesh's Avatar
    charlesh is offline Master Glow Jedi
    Join Date
    Aug 2006
    Location
    Atlanta, GA - better than you imagined it would be.
    Posts
    189

    Default

    You have to change something right now until PHP5 is the default flavor. Check out this post on how to do it.

    Chas

  3. #3
    AsdaLegend is offline Nearly a Glow Sage
    Join Date
    Nov 2007
    Posts
    17

    Default

    Do I have to erase everything in the.htaccess file with that line or do I just have to add the line?
    Last edited by AsdaLegend; 11-16-2007 at 09:15 AM.

  4. #4
    charlesh's Avatar
    charlesh is offline Master Glow Jedi
    Join Date
    Aug 2006
    Location
    Atlanta, GA - better than you imagined it would be.
    Posts
    189

    Default

    You just have to replace the one that has the x-httpd-php4 with this:

    AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml

  5. #5
    AsdaLegend is offline Nearly a Glow Sage
    Join Date
    Nov 2007
    Posts
    17

    Default

    Hmm, my current .htaccess file does not include the line x-httpd-php4 anywhere.

  6. #6
    charlesh's Avatar
    charlesh is offline Master Glow Jedi
    Join Date
    Aug 2006
    Location
    Atlanta, GA - better than you imagined it would be.
    Posts
    189

    Default

    Ah, then just add the one for the php5 and it will point correctly, if you need php5.

    This is true for recursive directories. For instance, I have a client site that has an administration console that uses a class written for php5. For the /administration part of the website, I added that line to the .htaccess and it works fine. The rest of the top-level site, though, still is under php4 by default.

    Hope that helps.

    CharlesH

  7. #7
    AsdaLegend is offline Nearly a Glow Sage
    Join Date
    Nov 2007
    Posts
    17

    Default

    Thanks!

    This PHP4 and PHP5 jargon is making the whole internet more complicated, hehe.

  8. #8
    charlesh's Avatar
    charlesh is offline Master Glow Jedi
    Join Date
    Aug 2006
    Location
    Atlanta, GA - better than you imagined it would be.
    Posts
    189

    Default

    Once you get used to it, it will make sense. PHP5 was different enough from php4 that the two are separable, but most of what works on php4 will also work on php5. Keep in mind also that at the beginning of the year, Glowhost will be migrating to php5, so it is good you're getting a jump on it now.

    Charles

  9. #9
    QHF's Avatar
    QHF
    QHF is offline Nearly a Master Glow Jedi
    Join Date
    Jun 2007
    Location
    Wisconsin
    Posts
    131

    Question

    This is the first I've heard that GlowHost will be moving to PHP5 in January. I have some PHP4 apps running and am wondering if the migration to PHP5 will have any negative impact on the PHP4 scripts currently running.

    QHF

  10. #10
    admin is offline Administrator
    Join Date
    Jan 2005
    Posts
    69

    Default

    It all depends on the script. Most people are not having problems from what I have been reading, but others will. unfortunately it is hard to say until D-Day unless you test out the site under PHP5 beforehand which you can do on any GlowHost server with your .htaccess file.

    Here are the docs on how to run php5 on your site

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14