title: Error in php using curl_init()
body: <p>I'm completely newbie in PHP. </p>
  
  <p>I have tried example code from <a href="http://php.net/manual/en/function.curl-init.php" rel="nofollow">this site</a>. but it gives following error:</p>
  
  <pre><code>Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\g\test1.php on line 3
  </code></pre>
  
  <p>Am I missing something? It says undefined function curl_init() so where should I define it?</p>
  
  <p>Code:-</p>
  
  <pre><code>&lt;?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);
  ?&gt;
  </code></pre>