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
| |
|
Comments (0)