0

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?

user513788
  • 105
  • 1
  • 6

1 Answers1

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.

Community
  • 1
  • 1
Hans Z.
  • 50,496
  • 12
  • 102
  • 115