Changing PHP handler version at server.

Changing PHP handler version

To swich between different PHP versions, we can use a simple trick with htaccess file. Here is a sample configuration to change PHP version to a 5.2 brunch. Put .htaccess file with this code to a top directory of your hosting account: domains/[your-domain-name-here]/public_html

AddHandler x-httpd-php52 .php

If you want to use PHP 5.3 or 5.6 instead, just change last digits after php

AddHandler x-httpd-php53 .php
AddHandler x-httpd-php56 .php