Fri, 17 May 2024


How to force the execution of PHP scripts in HTML files?

By: Anton, NetArt Media
Wed, 17 March 2021

To do this, you just need to modify .htaccess .

You need to put the following line:

AddType application/x-httpd-php .html .htm

and then you don't need to rename your php files to *.php anymore.


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox