Reputation: 103
I tried running a PHP script that var_dumps CURLOPT_CAINFO in the command line. It gives a value. However, when I put the same code in a PHP file for use with Apache, it says CURLOPT_CAINFO is undefined. What happened?
Upvotes: 0
Views: 227
Reputation: 53998
You'll need to enable CURL in the PHP installation that Apache points to. See also: How to enable cURL in PHP / XAMPP. Check the settings by calling:
phpinfo();
in your script and look at the differences in modules that are enabled.
Upvotes: 1