Php Homepage cannot be displayed under IE

Source: Internet
Author: User
The server architecture is: linux + apache + mysql + php Folder: css,img,templates(included file index.html) file: index. php where the index. php code is as follows :? Phpinclude(.templatesindex.html );? The templatesindex.html code is as follows :! DOCTYPEhtmlPUBLIC-W3CDT

The server architecture is: linux + apache + mysql + php Folder: css, img, templates(included file index.html) file: index. php where the index. php code is as follows :? Php include ('./templates/index.html ');? The templates/index.html code is as follows :! DOCTYPE html PUBLIC "-// W3C // DT

The server architecture is: linux + apache + mysql + php

Folder: css, img, templates(include file index.html)

File: index. php

The index. php code is as follows:

<? Php include ('./templates/index.html');?>

The templates/index.html code is as follows:

<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Strict // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <title> untitled document </title> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8 "/> </pead> <body> this is test... </body> </ptml>

It can be displayed normally in non-IE environments,

However, if you access index. php in IE, it cannot be displayed (blank), but right-click to view the source code is correct.

This error is inexplicable. I finally solved it like this:

Copy the correctly displayed page, replace templates/index.html, replace the content in the body with the content you want to display, and then you can display the page correctly without saying anything...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.