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