Re: Enabling cURL on my Mac

From: Date: Fri, 28 Mar 2008 17:59:07 +0000
Subject: Re: Enabling cURL on my Mac
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272250@lists.php.net to get a copy of this message
Kista Tucker wrote:
Hi all, Ok, I'm still a newbie (hopefully, someday I'll be past this stage), so don't get too upset and also, if you can provide some assistance, I guess you'll have to give a step by step description from a beginner's point of view. The question: How can I check to be sure cURL is enabled? I'm on a MacBookPro running OS X 10.4.11. My PHP version is 5.1.4. Apache is version 1.3.33 Let me know if you need more information. Kista
call curl_init() from any php script and see if it works. If it reports and unknown function, then you don't have cUrl. If it works, then you have curl. From the manual: Description resource curl_init ([ string $url ] ) Initializes a new session and return a cURL handle for use with the curl_setopt(), curl_exec(), and curl_close() functions. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#272250) next »