这个问题在PHP邮件列表中出现的次数太多了。你需要安装最新的Windows版的PHP。你也许会想到你自己去编译PHP3,但我认为对于一般的开发目的,这不需要。PHP也有遍布全世界的镜像站点(中国似乎没有)。选择一个镜像,找到下载区域,选择"Source code and Windows distribution",下载"Windows Binary"。你只须要将当下来的文件Unzip(WinZip就挺好的)到你喜欢的目录中,如C:\PHP4B3.我推荐用版本号作为目录名,这样将来你试用更新版本时,无须删掉老的版本。
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; if you wish to have an extension loaded automaticly, use the
; following syntax: extension=modulename.extension
; for example, on windows,
; extension=msql.dll ; or under UNIX,
; extension=msql.so
; Note that it should be the name of the module only,
; no directory information needs to go here.
; Specify the location of the extension with the
; extension_dir directive above.
接下来几行被注释的,如
如果你运行的Windows NT系统,你可能要将Apache作为系统的服务进程来运行。点击"开始"按钮,选择"程序","Apache Web Server","Insfall Apache as Service"。这样,你可以通过NT的控制面版中的"服务"程序来管理Apache的启动和终止。除非有特殊的理由,我建议你将"Apache Service"的运行方式改为"手动":打开控制面版,选择"服务"图标,找到"Apache Service",再点击"运行",将运行方式设为"手动"。不过这样,当你要运行Apache时,必须亲自去启动它,虽然如此,在NT关闭时,Apache也会自动关闭,你不会看到任何Apache的窗口。
如果你未能看到这条消息或Apache窗口稍纵即逝,你就必须从Dos窗口以命令行的方式启动Apache。换到你安装Apache的目录,键入"Apache",看看显示了什么消息。如果是"parse error in the conf file",问题可能出在你的httpd.conf上。检查一下,并修正错误。