.htaccess makes php files downloadable

advertisements

I have an .htaccess file with following content:

AddHandler x-httpd-php5 .php

For some reason, whenever I upload it to the server, Firefox then wants to download PHP files instead of showing them, I think the Apache server has some error. What's wrong?

Thanks in advance ^^


I think you want

AddHandler application/x-httpd-php5 .php