Any ideas how to manipulate the following code...
PHP Code:set_time_limit(20);
ob_start();
header("Content-Type: text/plain");
$host = "www.google.com";
$post = "HEAD / http/1.1\r\n";
$post .= "Host: " . $host . "\r\n";
$post .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2\r\n";
$post .= "Keep-Alive: 200\r\n";
$post .= "Connection: keep-alive\r\n\r\n";
$sock = fsockopen($host,80);
fwrite($sock, $post, strlen($post));
while (!feof($sock)){
echo fgets($sock);
}
ob_end_flush();



Reply With Quote

Bookmarks