可以。
在pws下安装需要修改注册表
在php\sapi目录下有两个注册表文件:
pws-php4cgi.reg
pws-php4isapi.reg
根据你需要的模式修改相应文件的[PUT PATH HERE]为php安装目录,然后合并之

解决方案 »

  1.   

    不如使用 php+mysql+apache 更方便
      

  2.   

    我也是用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的。:)
      

  3.   

    TO 楼上的:
    修改php.ini将cgi.force_redirect设为0
      

  4.   

    谢谢楼上的,已经改了,上面的问题是解决了,可是又有新问题,再麻烦各位一下,已经开始运行,可是运行不正确,提示为
    "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我删掉了。请问这是怎么回事。
      

  5.   

    可能php_curl.dll与你的PHP版本不兼容,在extension=php_curl.dll前面加上注释即可。
      

  6.   

    谢谢,是的,我加上注释就好了,除了php_curl.dll以外,还有php_fbsql.dll,php_domxml.dll,php_fdf.dll,这几个上加上注释以后就没有前面的提示了。但是还是有问题,错误提示为function registration failed-duplicate name-gd_info等类似。请问这又是什么问题呢?
      

  7.   

    注释掉所有的extension=php_*.dll
    待正常了再根据情况连接