Home  >  Article  >  Backend Development  >  html文件包含PHP上传服务器后无法显示?该如何处理

html文件包含PHP上传服务器后无法显示?该如何处理

WBOY
WBOYOriginal
2016-06-13 10:20:42906browse

html文件包含PHP上传服务器后无法显示??
我建了两个文件,一个是HTML文件一个是PHP文件,两个文件的内容都是一样的。
为什么php的显示正常,html的只显示 测试ceshi123 没有显示PHP代码的内容!
html不是可以直接引用PHP的吗?
两个文件上传到服务器显示的结果:
http://www.hu0010.com/index.html
http://www.hu0010.com/index.php

在我本机是都显示的,我本机的配置是apache2.2.21 php5.4 orc4 mysql 5.5.18 phpmyadmin 3.2.5
服务器配置:Microsoft-IIS/6.0 PHP Version 5.2.17 mysql 5.1.57-community phpmyadmin 3.3.10

内容是:




独步人生




测试ceshi123
  include("conn.php");
  echo "hello world!";
  phpinfo();
?>




------解决方案--------------------
html不是可以直接引用PHP的吗?
正好反了!
php是可以直接引用html的
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn