即使执行了所有必要的步骤,php_curl 仍无法正常工作
我正在尝试使用 IIS 在 Windows 2003 服务器上启用 php_curl。它就是行不通。
- 我确保该扩展在 php.ini 中启用/取消注释 - 我确实注意到有多个 php.ini 文件,所以我确保它们都是相同的。
- Extension_dir 设置指向 c:\php\ext (不带斜线)
- 我已将“ibeay32.dll”和“ssleay32.dll”从“C:\PHP5\ext”复制到“%windows%\system32 文件夹”
- 我甚至尝试将 php_curl.dll 从 c:\php\ext 复制到 windows system32 文件夹,但这也不起作用。
- 我在命令提示符下执行了 php-cgi.exe -v ,没有出现错误。
我没有遇到其他一些 Windows 用户遇到的相同错误,即“无法加载 php curl” - 我收到一条错误,提示“致命错误:调用未定义的函数:curl_init()”
我做了一个测试带有 phpInfo 的页面,位于: http://www.mrahmanphoto.com/blog/test.php
很明显没有加载任何附加模块。什么给?
I am trying to enable php_curl on my windows 2003 server, using IIS. It just won't work.
- I made sure the extension is enabled/uncommented in php.ini - I did notice that there are more than one php.ini files, so I made sure they were all the same.
- The extension_dir setting is pointing to c:\php\ext (without the slash)
- I have copied 'ibeay32.dll' and 'ssleay32.dll' from "C:\PHP5\ext" to '%windows%\system32 folder'
- I even tried copying php_curl.dll from c:\php\ext to the windows system32 folder, that didn't work either.
- I did php-cgi.exe -v from the command prompt, and no errors came up.
I don't get the same error that some of the other windows users are getting, which says 'unable to load php curl' - I get an error saying "Fatal error: Call to undefined function: curl_init()"
I made a test page with phpInfo, which is here: http://www.mrahmanphoto.com/blog/test.php
Its obvious that none of the additional modules are loading. What gives?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论