Change PHP version on server using either .htaccess or php.ini

Anriëtte Myburgh picture Anriëtte Myburgh · Aug 24, 2012 · Viewed 37.9k times · Source

How can I change the PHP version to 5.2 on a server using either an .htaccess of php.ini file?

Answer

Wayne Whitty picture Wayne Whitty · Aug 24, 2012

Adding

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

to your .htaccess might work.