装了PHP。运行时出现在以下提示

我在一个文件里写了

运行时出现在以下的提示。请问怎么解决:
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.

---------------------------------------------------------------

php.ini中
cgi.force_redirect=0
(注意:别忘记去掉前面的分号。goodname加注)

Published At
Categories with Web编程
comments powered by Disqus