Solved

Call to undefined function curl_init() Windows Server 2008

Posted on 2010-11-30
7
1,079 Views
Last Modified: 2012-05-10
Hi

I cannot get Curl to work in PHP 5.2.14 on Windows Server 2008 64 bit.

I have FastCGI non threadsafe setup and working.

The extension is enabled, the extension_dir is set correctly and I have tried copying msvcr70, ssleay32 and libeay32 to both c:\php and c:\windows\system32.

Is Curl compatible with 64bit Windows?

I have tried php -m in command and I get the error zlib.dll is missing. Could this have something to do with it?

What can I do to get CURL working?

Thanks
0
Comment
Question by:bromley_college
  • 4
  • 3
7 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 34239220
Curl has to be compiled into PHP.  I do not know if it works with 64bit, but you could ask Haxx.
http://us.php.net/manual/en/curl.installation.php
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 34239232
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 34239358
Hmm... See also this:
http://us.php.net/manual/en/migration53.windows.php

"There is now experimental support for x64 versions of PHP on Windows."
http://windows.php.net/
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:bromley_college
ID: 34239633
Any idea how I install the curl?

Ive downloaded the Win64 exe but get the error 'The application has failed to start becauses its side by side configuration is incorrect'

Regads

Colin
0
 

Accepted Solution

by:
bromley_college earned 0 total points
ID: 34240127
Hi

Fixed. It turned out there is a bug in 5.2.14 and when you replace the php_curl.dll from version 5.12.13 it works:

http://stackoverflow.com/questions/3492147/problem-installing-php-curl-in-windows-7-64bit

Regards

Colin
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 34240141
Congrats!
0
 

Author Closing Comment

by:bromley_college
ID: 34276722
found the solution myself
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hacked File Timestamps 4 49
Access Object's Property 9 22
is this a cms? 8 34
How do I remove all except the numbers?  PHP  Regex 3 10
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

910 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now