title: Curl function not working in XAMPP 1.8.0
body: <p>I am using Windows 7. I have installed XAMPP 1.8.0 and also enabled the CURL functionality. But, I am still not able to crawl web pages.</p>
  
  <p><strong>I used the following code segment:</strong></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.google.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>
  
  <p><strong>And when I executed the program, the error message was:</strong></p>
  
  <pre><code>Fatal error: Maximum execution time of 30 seconds exceeded in
  C:\xampp\htdocs\testing\curl.php on line 14
  </code></pre>
  
  <p><strong>Line 14:</strong> <code>curl_close($ch)</code></p>
  
  <p>Why I am getting such an error? How can I debug it? Please help me.</p>