DenVic
Новичок
fsockopen и Moved Permanently , что значит ошибка?
Здравствуйте все. Такая проблемка есть:
при выполнении выдает шибку:
HTTP/1.1 301 Moved Permanently Location: https://xxxx.den.ru/bad/control Cache-control: private Content-Length: 0 Date: Wed, 12 Oct 2005 17:48:23 GMT Content-Type: text/html Server: GFE/1.3
Здравствуйте все. Такая проблемка есть:
PHP:
$host = 'xxxx.den.ru';
PHP:
$fp = @fsockopen ("$host", 80, $errno, $errstr, 10);
PHP:
if (!$fp) {
PHP:
echo "$errstr ($errno)<br>\n";
PHP:
} else {
PHP:
fputs($fp, ....);
PHP:
.....
PHP:
while (!feof($fp)) {
PHP:
$content .= fgets($fp, 4096);
PHP:
}
PHP:
echo $content;
PHP:
}
PHP:
fclose($fp);
HTTP/1.1 301 Moved Permanently Location: https://xxxx.den.ru/bad/control Cache-control: private Content-Length: 0 Date: Wed, 12 Oct 2005 17:48:23 GMT Content-Type: text/html Server: GFE/1.3
Наверное сдесь защита какаято стоит, а вот как ее обойти...