且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何让CURL在Windows上使用PHP? (WAMP)

更新时间:2023-02-22 19:40:20

您不必重新启动计算机,只需重新启动apache,php模块将读取新的ini。

是否更改了正确的php.ini?遇到疑问时

You don't have to reboot the computer, just restart the apache and the php module will read the new ini.
Did you change the correct php.ini? In case of doubt

<?php echo 'php.ini: ', get_cfg_var('cfg_file_path'); ?>

可以告诉你。

在apache的error.log中有指示加载php和php_curl.dll时发生错误的东西?

Is there something in the error.log of the apache that indicates that something went wrong while loading php and the php_curl.dll?

您作为win32服务启动了apache吗?如果你尝试启动它作为控制台应用程序。错误消息将显示在控制台上。或者将其作为服务启动,并查看error.log文件 Windows事件日志(start,run, eventvwr.msc / s )。

Did you start the apache as a win32 service? If you did try to start it as a console application. Error messages will show up on the console then. Or start it as a service and take a look at the error.log file and the windows event log (start, run, eventvwr.msc /s).

编辑:

无法找到指定的过程

您需要一个兼容的dll与您的PHP版本和构建。您安装的是什么,您从哪里得到它?

edit:
"The specified procedure could not be found"
You need a dll that is compatible with your php version and build. Exactly what did you install and where did you get it from?