To check client URL (cURL) is enabled or not you can simply: if (in_array ('curl', get_loaded_extensions())) { return true; } else{ return false; }
Tag: cURL
example of simple crawling of web pages using client URL (cURL) $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "http://www.example-url.com"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $content= curl_exec($curl); curl_close($curl); var_dump($content); //content being crawled