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!
Printable View
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?
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
Yes, It's true. Most likely a problem would be if you had some php5 apps that won't run on php4. Your php 4 apps should be fine on php5. I think there are only a few things that are not supported. Here's a list.
For the announcement, check out this post:
http://glowhost.com/forums/general-a...ripts-817.html
Also, using the method we discussed above, try things out in php5 by modifying the .htaccess file first - that way you will know for sure. Do it late at night or a time when traffic is the least affected.
Charlesh
Yes, it is pretty painless. Only issues I had is some of my functions to duplicate php 5 functionality had the same names, so naturally they broke.
Other issues are some libraries, like the domxml are now unsupported and require recompiling PHP
For the general user, its pretty easy going. If it isn't, welll....... thats what this forum is for!