How to execute php code into html pages?

When I create htaccess file like this:

RemoveHandler .html .htm
AddType application/x-httpd-php .phtml .php .php3 .php4 .html

it works if php configured as module.

But I need to run such pages at server where php is configured as CGI. This method doezn't work. Apache ignores changing of handler.

Does anybody knows how to get it work with CGI-configured php? AddHandler directive also doesn't helpHow to execute php code into html pages?

 

 

 

 

Top