Use of undefined constant CURLOPT_POST - assumed 'CURLOPT_POST'

前端 未结 2 1299
情书的邮戳
情书的邮戳 2021-01-17 10:47

I am making a cURL request via Kohana 3.2 but I get the following error when it tries to access CURLOPT_POST constant:

Use of undefined constant         


        
相关标签:
2条回答
  • 2021-01-17 11:03

    I noticed extension=php_curl.dll was commented out in C:\wamp\bin\php\php5.4.12\php.ini but active via C:\wamp\bin\apache\Apache2.4.4\bin\php.ini.

    I found that uncommenting the line in C:\wamp\bin\php\php5.4.12\php.ini fixed my issue.

    0 讨论(0)
  • 2021-01-17 11:11

    First, let's check php-curl has been installed on your server by

    aptitude search php-curl
    

    or aptitude search php5.6-curl

    if that hasn't been installed yet, let's install it by

    sudo apt-get install php5.6-curl
    
    0 讨论(0)
提交回复
热议问题