Search code examples
php.htaccessphp-ini

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


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


Solution

  • Adding

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

    to your .htaccess might work.