我也是用PWS+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.顺便问一下,楼上那位我用的是98,如果安APACHE要怎么设置(怎么装)。 谢谢各位了,我刚刚才开始学PHP的。:)
TO 楼上的: 修改php.ini将cgi.force_redirect设为0
谢谢楼上的,已经改了,上面的问题是解决了,可是又有新问题,再麻烦各位一下,已经开始运行,可是运行不正确,提示为 "Unknown():Unable to load dynamic library'C:\php\extensions\php_curl.dll'-找不到运行此应用程序所需的某个库文件。“我在PHP.ini中已经将extension_dir指向安装PHP的文件夹了,而且我把PHP.ini中的extension=php_*.dll行前的注释已经去掉了。我将PHP.ini文件放在C:\Windows目录下了,而C:\php目录下的原php.ini我删掉了。请问这是怎么回事。
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.顺便问一下,楼上那位我用的是98,如果安APACHE要怎么设置(怎么装)。
谢谢各位了,我刚刚才开始学PHP的。:)
修改php.ini将cgi.force_redirect设为0
"Unknown():Unable to load dynamic library'C:\php\extensions\php_curl.dll'-找不到运行此应用程序所需的某个库文件。“我在PHP.ini中已经将extension_dir指向安装PHP的文件夹了,而且我把PHP.ini中的extension=php_*.dll行前的注释已经去掉了。我将PHP.ini文件放在C:\Windows目录下了,而C:\php目录下的原php.ini我删掉了。请问这是怎么回事。
待正常了再根据情况连接