版本:(原文链接 http://ddbiz.com/?p=116)
D:\webserver\httpd\bin>httpd -v
Server version: Apache/2.2.17 (Win32)
Server built: Oct 18 2010 01:58:12
D:\webserver\php-5.3.6-ts>php -v
PHP 5.3.6 (cli) (built: Mar 17 2011 10:37:07)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
使用php的命令行,curl模块加载没有任何问题:
D:\webserver\php-5.3.6-ts>php -m
[PHP Modules]
bcmath
bz2
calendar
com_dotnet
Core
ctype
curl
date
dom
ereg
filter
ftp
gd
hash
iconv
json
libxml
mcrypt
mhash
mysql
mysqlnd
odbc
pcre
PDO
pdo_mysql
Phar
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
但是把此php模块加载到httpd后,httpd重启,则报告
PHP Startup: Unable to load dynamic library 'D:/webserver/php-5.3.6-ts/ext/php_curl.dll' - 找不到指定的模块。
不用急,把下面这几个文件复制到 c:\windows\system32即可:
d:\webserver\php-5.3.6-ts\ssleay32.dll
d:\webserver\php-5.3.6-ts\libeay32 .dll
这个解决方案是针对 开头说明的httpd和php的版本的,其他版本没有测试,不过应该相通的。