-
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!
-
You have to change something right now until PHP5 is the default flavor. Check out this post on how to do it.
Chas
-
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 10:15 AM.
-
You just have to replace the one that has the x-httpd-php4 with this:
AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml
-
Hmm, my current .htaccess file does not include the line x-httpd-php4 anywhere.
-
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
-
Thanks!
This PHP4 and PHP5 jargon is making the whole internet more complicated, hehe.
-
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
-
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
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules