XoNoX Posted July 4, 2006 Share Posted July 4, 2006 HiI wanna change my php.ini, and open index.html like index.php. The problem is my index.html is writed in php and all files has been named *.html but writed in php.Any help¡? thanx Quote Link to comment https://forums.phpfreaks.com/topic/13647-open-indexhtml-like-indexphp/ Share on other sites More sharing options...
trq Posted July 4, 2006 Share Posted July 4, 2006 Pardon? You want to parse html files as php?You need to change you httpd.conf file, nothing to do with your php.ini. Quote Link to comment https://forums.phpfreaks.com/topic/13647-open-indexhtml-like-indexphp/#findComment-52922 Share on other sites More sharing options...
shocker-z Posted July 4, 2006 Share Posted July 4, 2006 If you're running Apache it's in httpd.conf AddType application/x-httpd-php .php .php4 .phtmlneed it to have .html added also.. like thisAddType application/x-httpd-php .php .php4 .phtml .htmlAnd that should solve you're problemRegardsLiam Quote Link to comment https://forums.phpfreaks.com/topic/13647-open-indexhtml-like-indexphp/#findComment-52923 Share on other sites More sharing options...
XoNoX Posted July 4, 2006 Author Share Posted July 4, 2006 I will try it.THanx :D Quote Link to comment https://forums.phpfreaks.com/topic/13647-open-indexhtml-like-indexphp/#findComment-52928 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.