rooot
Новичок
<?php
$fp = fsockopen ("www.combats.ru", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET angelscity.combats.ru/enter.pl?login=angbot&psw=eminem07 HTTP/1.0\n\n");
$f = fopen("text.txt","w");
while (!feof($fp)) {
$text.=fgets ($fp,128);
}
fwrite($f, $text);
fclose($f);
fclose ($fp);
}
?>
попробовал так пишет:
<html><head><title>[400] Bad Request</title></head>
<body><h3>Bad Request</h3>
Your request was not understood or not allowed by this server.
</body></html>
$fp = fsockopen ("www.combats.ru", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET angelscity.combats.ru/enter.pl?login=angbot&psw=eminem07 HTTP/1.0\n\n");
$f = fopen("text.txt","w");
while (!feof($fp)) {
$text.=fgets ($fp,128);
}
fwrite($f, $text);
fclose($f);
fclose ($fp);
}
?>
попробовал так пишет:
<html><head><title>[400] Bad Request</title></head>
<body><h3>Bad Request</h3>
Your request was not understood or not allowed by this server.
</body></html>