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
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.
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