$fp = fsockopen ("www.xxx.net", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br>\n"; } else { fputs ($fp, "GET /xxx.php HTTP/1.1\r\n\r\n"); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); }