Jump to content

Setup PHP with Curl support


Recommended Posts

I have already compiled PHP on my OS X machine and when I run a basic curl script it does not recognized "curl_init();".  I'm guessing that I did not enable support for curl when I compiled PHP.  Do i need to go back an recompile php?  Will this disrupt my current settings?  What exactly do I need to install to have curl work?  I've done a lot of googling and tried recompiling it numerous times, most often it fails to recompile and the times it does complete the curl script does not seem to work.

Thank you!

If it's not recognizing curl_init(), I think you'll need to recompile (--with-curl[=curl's dir]), but before you do, you need to make sure you have libcurl installed (see http://curl.haxx.se/ for downloads).

 

If you have libcurl installed, and you're configuring with curl enabled, and it's failing to compile, I'd need more information about the failures to really start to guess.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.