Quote:
Originally Posted by Simon Lloyd
How about checking for cURL...etc and then either hiding the selection if its not or making it unselectable?
PHP Code:
<?php echo 'Curl: ', function_exists('curl_version') ? 'Enabled' : 'Disabled' . ' file_get_contents: ', file_get_contents(__FILE__) ? 'Enabled' : 'Disabled'; ?>
|
The function_exists deal is about dead on... there's also a few tweaks in the actual cURL request which cause errors for some newer versions. In my other scripts I've solved this and just need an excuse to update HA to bring it in.