curl
CURL support enabled
CURL Information libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5[root@news html]# nslookup api.facebook.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: api.facebook.com
Address: 69.171.229.27
[root@news html]#<?php
$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');
curl_setopt($ch, CURLOPT_VERBOSE, 1);
$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";}
}
print $curlstatus;
print "\n";
print $curlcontent;
print "\n";
?>Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
