My shared hosting provider uses PHP 5.2.x. When I contacted them to ask why, and if 5.3.X was available, they said that they maintain 5.2.x so that client scripts don’t break, but offer “A handler for PHP 5.3 is added to our shared and reseller servers for those who wish to utilize it.”
I was instructed to “add the following code to your .htaccess file:
Action application/x-hg-php53 /cgi-sys/php53
AddType application/x-hg-php53 .php
is it as simple as adding that to my site’s root .htaccess file? And then everything will automatically use their 5.3 PHP instead of the default 5.2?
Yes, it is: These two lines instruct the server to associate any file ending with ".php" to call a specific program, namely php53.
Give it a try!
You could even write
to make the "old" PHP execute *.php files, while your *.php53 files will be executed by PHP 5.3.x