<?php
echo 'fopen test<br>';
$handle = fopen("https://graph.facebook.com", "r");
echo '<br><br>curl test<br>';
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL,'https://graph.facebook.com' );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch,CURLOPT_VERBOSE,false);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$page=curl_exec($ch);
echo curl_error($ch);
curl_close($ch);
echo '<br><br>gethostbyname test<br>';
$host = 'graph.facebook.com';
$ip = gethostbyname ($host);
if ($ip != $host) {
	echo $ip;
} else {
	echo 'IP Lookup Failed.';
}
echo '<br><br>';
?>