Using fopen( )
<? $fp = fsockopen ("data.org", 80); if ($fp) { fwrite($fp, "GET / HTTP/1.1\r\nHOST: data.org\r\n ACCEPT-ENCODING: gzip\r\n\r\n"); while (!feof($fp)) { print fread($fp,256); } fclose ($fp); } else { print "Fatal error\n"; } ?>