obay Posted October 22, 2007 Share Posted October 22, 2007 i have php codes in .html files. when i load the pages, some of the php codes are displayed instead of being parsed. so i added application/x-httpd-php for .html using cpanel's Apache Handlers. how long before it takes effect? Link to comment https://forums.phpfreaks.com/topic/74257-solved-apache-handlers-for-php-how-long-before-it-takes-effect/ Share on other sites More sharing options...
derwert Posted October 22, 2007 Share Posted October 22, 2007 You have to restart apache after you make that change unless you did it in a .htaccess file. Keep in mind adding php processing to .html files will add overhead to the server for files that don't have any PHP in them. Link to comment https://forums.phpfreaks.com/topic/74257-solved-apache-handlers-for-php-how-long-before-it-takes-effect/#findComment-375162 Share on other sites More sharing options...
obay Posted October 22, 2007 Author Share Posted October 22, 2007 thanks!! it's working fine now! Link to comment https://forums.phpfreaks.com/topic/74257-solved-apache-handlers-for-php-how-long-before-it-takes-effect/#findComment-375164 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.