<? #(c) NOmeR1 function file_post_contents($url) { $url = parse_url($url); $fp = fsockopen($url['host'], 80, $errno, $errstr, 30); if(!$fp) { return false; } else { $postContents = "POST ".$url['scheme']."://".$url['host'].$url['path']." HTTP/1.0\r\n". "Host: ".$url['host']."\r\n". "Referer: ".$url['scheme']."://".$url['host'].$url['path']."\r\n". "Content-Type: application/x-www-form-urlencoded\r\n". "Content-Length: ".strlen($url['query'])."\r\n\r\n". $url['query']; fputs($fp, $postContents); $result = ''; while(!feof($fp)) { $result .= fgets($fp, 128); } fclose($fp); return $result; } } echo file_post_contents('http://forum.antichat.ru/member.php?u=747'); ?>