title: How do I install cURL on Windows?
body: <p>I have followed all the instructions here: <a href="http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/" rel="noreferrer">http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/</a></p>
  
  <p>to install &amp; config apache
  get the PHP5 packages
  and get the CURL packages.</p>
  
  <p>I run the apache and run a PHP script. no problem.
  but when I run the php script with curl, it fails. </p>
  
  <p>It returns:  <code>**Call to undefined function curl_version() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\testing.php on line 5**</code></p>
  
  <p>In which line 5 is a called to <code>curl_init()</code></p>
  
  <p>I output the php -i  to see whether the right path to extension is called.  It is correctly set:</p>
  
  <pre><code>extension_dir =&gt; C:\PHP\ext =&gt; C:\PHP\ext
  cURL support =&gt; enabled
  cURL Information =&gt; libcurl/7.16.0 OpenSSL/0.9.8g zlib/1.2.3
  </code></pre>
  
  <p>I even tried to run <code>curl_version()</code>  but still, same kind of error comes up.<br>
  It looks like the PHP can't find the CURL extension, but the <code>php.ini</code> (and also php -i) shows that it is set.</p>
  
  <p>any idea? :)</p>
  
  <pre><code>P.S&gt;  System I m running on:
  Windows XP
  Apache 2.2
  PHP 5.2.6
  CURL Win32 Generic Binaries: Win32 2000/XP  metalink    7.19.0  binary  SSL enabled     Daniel Stenberg     249 KB
  </code></pre>
  
  <p>I didn't get this:  </p>
  
  <pre><code>Win32 2000/XP   7.19.0  libcurl     SSL enabled     Günter Knauf    1.55 MB
  Should I get this one instead?
  </code></pre>
  
  <hr>
  
  <p>The reason I need to use CURL is that it is the requirement from my project.  So, I can only stick with that.
  XAMPP... how does it work in Windows?   Is there any site that you can recommend?  Thanks.</p>
  
  <p>I have tried a lot of things on installing cURL and check everything, but still, I'm stilling circling around the problem and have no idea what's going on.  </p>
  
  <p>The Apache server uses the right PHP.ini.  and the PHP.ini has the correct extension_dir and extension=php_curl.dll
  I have no idea why it doesn't work.   even I follow every step for setting it up. :(</p>