vmalli Posted January 14, 2007 Share Posted January 14, 2007 I am learning how to use php. Most of my files are html files. How can I use php codes to work in html documents? Link to comment https://forums.phpfreaks.com/topic/34171-using-php-codes-in-an-html-page/ Share on other sites More sharing options...
trq Posted January 14, 2007 Share Posted January 14, 2007 You need to modify your server configuration to parse *.html as php. If using Apache you'll need to find the line...[code]AddType application/x-httpd-php .php[/code]and add...[code]AddType application/x-httpd-php .html[/code]below it. Link to comment https://forums.phpfreaks.com/topic/34171-using-php-codes-in-an-html-page/#findComment-160768 Share on other sites More sharing options...
corillo181 Posted January 14, 2007 Share Posted January 14, 2007 ...................... Link to comment https://forums.phpfreaks.com/topic/34171-using-php-codes-in-an-html-page/#findComment-160769 Share on other sites More sharing options...
vmalli Posted January 14, 2007 Author Share Posted January 14, 2007 by the way, i am running Apache 2.2.3 Link to comment https://forums.phpfreaks.com/topic/34171-using-php-codes-in-an-html-page/#findComment-160770 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.