
13.09.2008, 14:22
|
|
Новичок
Регистрация: 20.08.2008
Сообщений: 14
С нами:
9328452
Репутация:
3
|
|
Мнэээ....
<?
$data = 'name=Имя&mail=мыло@мыло.руcomments= оммент'
$hd = "GET /" HTTP/1.0\r\n";
$hd .= "HOST: www.sell-prog.ru\r\n";
$hd .= "User-Agent: Mozilla/4.0 (compatible MSIE 6.0 Windows NT 5.1 ru) Opera 8.53\r\n";
$hd .= "Content-Length: ".strlen($data)."\r\n";
$hd .= "Content-Type: application/x-www-form-urlencoded\r\n";
$hd .= "Connection: close\r\n\r\n";
$hd .= $data;
$fp = fsockopen('www.sell-prog.ru',80);
@fwrite($fp,$hd);
$text = '';
while(!feof($fp))
{
$text .= @fgets($fp,4096);
}
print $text;
?>
что то типа того должно быть
|
|
|