Page 1 of 1
Detect server PHP library support?
Posted: Mon Aug 17, 2009 11:27 am
by JAB Creations
I've seen it done when I first started messing with cURL just over a year ago though I'm not sure how to detect if the cURL library is available to PHP? Nothing remotely related to my question si coming up on the search engines so could someone please point me in the correct direction?

Re: Detect server PHP library support?
Posted: Mon Aug 17, 2009 11:40 am
by Mark Baker
if (function_exists('curl_version')) {
}
Re: Detect server PHP library support?
Posted: Mon Aug 17, 2009 11:42 am
by jackpf
Code: Select all
if(function_exist('curl_init'))
echo 'curl is available!';
else
echo 'curl not available <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->';
<span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> hell, bug or what.

Re: Detect server PHP library support?
Posted: Mon Aug 17, 2009 12:07 pm
by JAB Creations
Ha, I forgot about that function, thanks to both of you!

Re: Detect server PHP library support?
Posted: Mon Aug 17, 2009 12:18 pm
by jackpf
Oh hey, Mark Baker didn't see your post!!