0

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

4

2 回答 2

1

在 httpd.conf

// comment out this line
# AddType application/x-httpd-php .php
于 2010-12-09T04:27:56.750 回答
0

没有将您的代码直接打印到 HTML 中的配置设置。

在您的代码中使用短的开放标签(例如<? ... ?>)并且未在配置中启用它们可能会出现问题,但这就是我能想到的。

其他任何事情都将是您的服务器配置和/或模块的错误。

于 2010-12-09T04:29:38.450 回答