I have installed curl and am trying to use it in a PHP script but I can't seem to get it to work.
I created the following php file
<!DOCTYPE html>
<html>
<body>
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "www.google.com")
curl_exec($ch);
curl_close($ch);
?>
</body>
</html>
and when I try to execute in through the command line and view the page in my browser, I get "Fatal error: Uncaught Error: Call to undefined function curl_init() in 'Location of file'".
However I can run curl perfectly fine in the command line by navigating to the its location and entering commands directly into the command line.