Home > Backend Development > PHP Tutorial > 在apache配置php 页面运行完输出php源代码是什么原因?

在apache配置php 页面运行完输出php源代码是什么原因?

WBOY
Release: 2016-06-23 13:42:26
Original
2163 people have browsed it

在apache配置php 页面运行完输出php源代码是什么原因?


回复讨论(解决方案)

php没挂上

头信息中的 mime 不对

确定编译好没,
重启服务,关掉浏览器,再打开就可以了,经常这样。

你确定你运行是php文件不是.php.txt文件?

找到原因了是因为
php.ini中的配置里面short_open_tag默认是off
要改成on才行

我的情况和你一样,我该成on了也没用

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template