If memory serves me you can configure php.. through the php.ini ( I hope ) to parse html pages as php..can anyone confirm this one for me.. and if so what do I need to add to the ini file to make this happen.
and them getting the dreaded "File Not Found" error. One option I tried was a symbolic link index.html --> index.php. It appears when you go to the index.html page it will load the php page but it won't parse it. I also tried a meta refresh with a link to the new page and that leaves me with two index files to deal with.. index.php and index.html. When you go to the domain via
You can, also, UNCONVENTIONALLY, use the Apache httpd.conf (if you're using Apache) to declare that .html is to be processed as PHP script. Not really a great idea (if you get hit by a beer truck, someone might get confused), you might be able to get away with it.
You'd assign .html, .htm to the PHP handler declaration (whose exact syntax I don't have handy)
you need to go into Apache's httpd.conf file and look for some lines talking about MIME types and specifically syntax using "AddType ....blah...blah..."
Here are the lines you add to make Apache process php files to begin with (copied straight from my httpd.conf file):
you may also want to check another file called mime.types that gets written to by the "AddType" lines that are part of httpd.conf file (my "mine.types" file was in Apache's conf directory, same directory where you find "httpd.conf"
also, from my previous post, there may be slightly different syntax that should be used (saw this in another post from someone else):
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.