I'm completely newbie in PHP.
I have tried example code from this site. but it gives following error:
Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\g\test1.php on line 3
Am I missing something? It says undefined function curl_init() so where should I define it?
Code:-
<?php
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab URL and pass it to the browser
curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);
?>