int php.ini
-------------
; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1
-------------
; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1
解决方案 »
- 系统重装,原来的mysql数据库保存在d盘,请问怎么把数据要回来啊?
- 预定义变量,全局变量,超全局变量分别是什么?
- 這php有什麼錯?
- phpmyadmin安装的问题,且mysql不能备份数据库
- imagecopyresampled() 函數怎麽用阿。。。
- 求一sql语句
- 关于用php发送有附件的邮件,附件无法打开(急!!! 在线等)
- 小弟刚入门php,请教数据提交问题!!
- 怎样把一年中的每个星期的时间段取出来?求救!
- 怎样才能取得javascrip函数传过来的参数呢?
- 初级问题
- 单机装RED HAT 没网卡,可以学PHP编程吗??很想做LINUX管理员 ,苦于没条件啊!!各位师兄,给点看法??
里面
; cgi.force_redirect = 1
前面的分号去掉
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里有这么一句:
; **You CAN safely turn this off for IIS, in fact, you MUST.**不知道我是错在哪里?
对了,我的PHP是有用zend_optimizer包的