How can I run PHP code inside an HTML file?

Последна промяна: 15.10.2025 09:03

To run PHP code inside files with .html or .htm extensions, you need to add one of the following handlers to your .htaccess file:

AddHandler cgi-script .html .htm

Or use the updated version:

AddHandler fcgid-script .html .htm

Looking forward to hearing from you.