<?
$fp = fsockopen ("www.tvp.pl", 80, $errno, $errstr, 30);
if( $fp )
{
fputs ($fp, "GET /_repertuar/home.asp HTTP/1.0\r\nHost: www.tvp.pl\r\n\r\n");
$str = '';
while( !feof($fp) )
{
$str .= fgets( $fp, 128 );
}
fclose ($fp);
if(substr($str, 9, 3) != "200")
{
print 'error';
}else{
include("http://www.tvp.pl\r\n\r\n");
}
}
?>
Chociaż nie jestem pewien czy to zadziała... Jak zrobiłem błąd to go poprawcie...
I nie wiem czy include tak zadziala..