When I run my index.php with the following doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
It works in both Chrome and Firefox everything is displayed. The problem is in IE9 it just shows the html sourcecode.
Now I know it't not the code because when the file extension was index.html it displayed fine in IE9.
I've also tried
Which is ment to work with all the new browsers. Probably a stupid question but anyone shed some light?
Update: Not a DOCTYPE error. In fact its the XAMPP webserver for some reason http://localhost/htdocs is unable to be found in ie. And I can't manage to get the file:///C:/xampp/htdocs/myfiles/index.php to work in ie. Anyone know how to solve this please reply. Thanks.
It definitely won't work if you use a "file://" protocol type, as you'll then be bypassing the web server, which means PHP won't be invoked. I have no idea why IE would be misbehaving with the "http://localhost", other than maybe you should clear its cache and then try again?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation