Detect server PHP library support?
Moderator: General Moderators
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Detect server PHP library support?
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? 
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: Detect server PHP library support?
if (function_exists('curl_version')) {
}
}
Re: Detect server PHP library support?
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:( -->';- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: Detect server PHP library support?
Ha, I forgot about that function, thanks to both of you! 
Re: Detect server PHP library support?
Oh hey, Mark Baker didn't see your post!!