Knowledgebase: PHP and Apache
Parse HTML Files As PHP
Posted by on 28 July 2012 04:56 PM

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.

(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako fusion
ERROR: This domain name (kb.asmallorange.com), does not match the domain name in the license key file help.asmallorange.com.

For assistance with your license, please contact the Kayako support team: https://support.kayako.com