You must install the curl extension. I found this script to test the things you need.
$curlcontent="curl";
$curlstatus="Curl is not installed - This is a Problem";
if (function_exists('curl_init')) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.facebook.com/restserver.php');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0');
$curlcontent = curl_exec($ch);
curl_close($ch);
$curlstatus="Curl is available but cannot access Facebook - This is a problem ";
if (strlen($curlcontent)>6) {$curlstatus="Curl is available and can access Facebook - All is OK";}
}
Would there be a safe way to host such a script on GLBasic.com for _all_ users, but prevent it from being abused? I'd host it then for you all.