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?
Asked
Active
Viewed 218 times
1 Answers
1
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.