Loading...

Knowledge Base
Categories:

Parse HTML Files as PHP

Share

To parse HTML files as PHP scripts, create a file named '.htaccess' located at '/home/username/.htaccess' (replace 'username' with your actual cPanel username). Inside the file, add the following line:

AddHandler application/x-httpd-php5 .htm .html .php


All files ending in .htm, .html or .php will now be processed as PHP scripts.

Did you find this article helpful?

 
* Your feedback is too short

Loading...