Running fopen test
'; $handle = fopen("https://graph.facebook.com", "r"); if ($handle === false) { echo 'fopen test failed.'; } else { echo 'fopen test succeeded.'; } echo '

Running curl test
'; $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); if ($page === false) { echo 'curl test failed.'; } else { echo 'curl test suceeded.'; } curl_close($ch); echo '

Running gethostbyname test
'; $host = 'graph.facebook.com'; $ip = gethostbyname ($host); if ($ip != $host) { echo 'gethostbyname test succeeded. IP of graph.facebook.com is ' . $ip; } else { echo 'gethostbyname test Failed.'; } echo '

'; ?>