Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
in php ini, which seeting will force print the php code direcly in html?
i found that some of my code which using obstart will have this problem
but if i copy the other server php.ini, it play normally
在 httpd.conf
// comment out this line # AddType application/x-httpd-php .php
没有将您的代码直接打印到 HTML 中的配置设置。
在您的代码中使用短的开放标签(例如<? ... ?>)并且未在配置中启用它们可能会出现问题,但这就是我能想到的。
<? ... ?>
其他任何事情都将是您的服务器配置和/或模块的错误。