Can I Run A PHP (Or SSI Code) As A .HTML File?

Monday, 11 August 2008 07:19
Print PDF

It's possible to run a PHP (or SSI code ) file as a regular HTML file in a folder, or in a whole account, by editing the .htaccess file and adding this code:

To run a PHP as an HTML:

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

To run a SSI code as an HTML:

AddHandler server-parsed .html .htm

Last Updated on Thursday, 04 November 2010 08:21
You are here:   Home Section Blog New to Onehoster.com - Starting up Can I Run A PHP (Or SSI Code) As A .HTML File? Find us on Google+

Control Panels

News and Events

Our Clients