• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

PHP: Test for cURL Support

How can I test if cURL is supported by an installation of PHP?
<?php

if( cURL_supported===true ) {echo 'cURL Supported!';}

?>

Open in new window

0
hankknight
Asked:
hankknight
1 Solution
 
aconradCommented:
use function_exists('curl_init')
<?php
$cURL_supported = function_exists('curl_init');
if( $cURL_supported===true ) {echo 'cURL Supported!';}

?>

Open in new window

0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now