Home > Backend Development > PHP Tutorial > apache,php入门配置有关问题

apache,php入门配置有关问题

WBOY
Release: 2016-06-13 13:51:45
Original
807 people have browsed it

apache,php入门配置问题
我们一般写php都要
?>

不过我看有人就把那个php去掉了,形如

?>

应该是要在哪个地方配置一下,否则就把这个php页面直接源码返回. 请指点一下。

------解决方案--------------------
php.ini中short_open_tag 设为On 重启apache
------解决方案--------------------
短标签short_open_tag 建议不要设置为On
------解决方案--------------------

探讨

引用:

php.ini中short_open_tag 设为On 重启apache

是的,这样就可以了.


短标签short_open_tag 建议不要设置为On.

不知道是否方便解释下?

------解决方案--------------------
楼上的说的不错
Related labels:
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