sazzie Posted April 4, 2007 Share Posted April 4, 2007 Can someone please tell me how to get Apache to pass html, with or without embedded php code, through the php preprocessor before sending the output to a webbrowser? Link to comment https://forums.phpfreaks.com/topic/45581-parsing-html-through-php-preprocessor-in-apache/ Share on other sites More sharing options...
wildteen88 Posted April 4, 2007 Share Posted April 4, 2007 Add .html to the end of the following line should do it, seperated by a space: AddType application/x-httpd-php .php So the above line to this: AddType application/x-httpd-php .php .html That will now pass .php and .html files to the PHP preprocessor. Save the httpd.conf and restart Apache. Link to comment https://forums.phpfreaks.com/topic/45581-parsing-html-through-php-preprocessor-in-apache/#findComment-221332 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.