简体   繁体   English

Apache / PHP未定义函数curl_init()

[英]Apache/PHP undefined function curl_init()

I have this error message when I compile my program in PHP. 在PHP中编译程序时出现此错误消息。 I have these two lines in my php.ini file : 我的php.ini文件中有这两行:

extension=curl 延长=卷曲

extension=C:\\Server\\bin\\PHP\\ext\\php_curl.dll 延长= C:\\服务器\\ BIN \\ PHP \\分机\\ php_curl.dll

It still doesn't work, can you help me ? 它仍然不起作用,您能帮我吗?

Thank you 谢谢

After installation, you would need to restart either Apache or Nginx. 安装后,您将需要重新启动Apache或Nginx。

Create a stand alone info.php page: 创建一个独立的info.php页面:

<?php 
    phpinfo();

Search the page you should see something like this: 搜索页面,您应该会看到以下内容:

cURL support: enabled

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM