I have two hosting providers and one installs curl by default and the other does not but I want a single codebase to be able to run in both servers without maintaining two versions. Is there a way to detect at runtime whether curl is present so that I can make the proper call one way or the other? Based on whether it is there I'm using: curl_get_file_contents vs. file_get_contents