Apache/PHP undefined function curl_init()

杀马特。学长 韩版系。学妹 提交于 2021-01-29 06:12:43

问题


I have this error message when I compile my program in PHP. I have these two lines in my php.ini file :

extension=curl

extension=C:\Server\bin\PHP\ext\php_curl.dll

It still doesn't work, can you help me ?

Thank you


回答1:


After installation, you would need to restart either Apache or Nginx.

Create a stand alone info.php page:

<?php 
    phpinfo();

Search the page you should see something like this:

cURL support: enabled


来源:https://stackoverflow.com/questions/55271493/apache-php-undefined-function-curl-init

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!