Processing HTML files with PHP

If you want to add PHP commands to your HTML pages and don't wish to change the file extensions you can get around this by adding the following command to .htaccess:

AddType application/x-httpd-php5 .html .htm

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

PHP4 and PHP5

When we made the decision to install PHP5 we were made aware of a large number of scripts that...

Deprecated warnings in PHP5

If you've recently moved servers from a server where PHP4 was the default to a server where...

Increasing upload_max_filesize

If you are using a CMS you may have found that you can't upload larger files because of the...

Turning magic quotes off

A lot of software now is requiring that "magic quotes" be switched off as it presents a security...