Solved

cURL Installation on Win 7 IIS

Posted on 2013-06-19
5
755 Views
Last Modified: 2013-12-13
I am having terrible problems installing cURL to run with PHP on Windows 7.
I have installed PHP and mapped it in IIS and PHP pages now display.

I am trying to use twitteroauth which requires cURL.

When I attempt to use it I get "PHP Fatal error:  Call to undefined function curl_init() "

How do I install cURL onto my windows 7 machine and get it working with PHP?

I am having a nightmare.
0
Comment
Question by:splanton
  • 2
5 Comments
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39259205
Your PHP Version number matters.  You can use phpinfo() to find this.

Here is what PHP.net has to say.
http://php.net/manual/en/book.curl.php

Check the version number:
http://php.net/manual/en/curl.requirements.php

Check the path to the libraries:
http://php.net/manual/en/curl.installation.php

Check the configuration options:
http://php.net/manual/en/curl.configuration.php

Try making a simple test to see if cURL is installed before you get into the Twitter Oauth.  You just want a "Hello World" example first!
0
 
LVL 2

Author Comment

by:splanton
ID: 39259339
I have been using some of the reverences you mention above, but I am very confused as to exactly what version of cURL, which one to download, where to put the contents, and what to configure.

My PHP version is 5.4.16

I need a real idiot guide for this because I have been trying now for 8 hours with varying downloads and documentation and I cannot get this working. Most of the documentation is a lilt 'presumptive' to say the least.
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39259422
Yeah, I get it.  I have the luxury of "server support" to handle all of this configuration stuff for me!

PHP 5.0.0 requires a libcurl version 7.10.5 or greater  So it seems that 5.4.16, which is pretty up-to-date, would use the most current version.  The yellow-colored links are the most current on this page (find Win near the bottom):
http://curl.haxx.se/download.html

I'll ask a moderator to add this to the PHP for Windows Zone.  Maybe get some fresh eyes on the problem...
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39260377
PHP for Windows uses it's own built-in version of curl.  It does not use the Windows version that you can install, even if you have them both on the machine.  My PHP 5.4.8 uses 'curl' version 7.24.0 and so does PHP 5.3.18.  

You do however, have to 'enable' it in 'php.ini' before you can use it.  Where it says 'extension=php_curl.dll', make sure there isn't a ';' in front of it.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIs Windows 2008 HTTPS no access 4 32
write screen output to text file 21 47
Google Maps API and PHP 25 27
000webhost.com default error log 1 27
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This article discusses four methods for overlaying images in a container on a web page
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question