I know PHP4 is no longer in use, but a pretty large custom script, that requires it, works perfectly fine. So there is no point in fixing something that's not broken. I have a PHP 5 script that I want to run under a sub folder I tried both AddHandler's below (not active at the same time) in a .htaccess file and nothing works. The main webroot .htaccess file is set to PHP 4, but I can't get it to turn off PHP 4 and have it default back to 5.2 on specific sub folders.

AddHandler application/x-httpd-php52s .php .php5 .php4 .php3 .html .tpl .htm 
AddHandler application/x-httpd-php52 .php .php5 .php4 .php3  .html .tpl .htm
link|improve this question

67% accept rate
What about using SetHandler or a combination of RemoveHandler/AddHandler? – fission Jul 25 '11 at 5:12
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.