hey thankz!
but strange thing, when I use that code it works on the normal page, but when I set to connect here http://www.industrialradio.net:8000/title.html
and doesn't work,
here's that code:
//opens file in "r" read mode for reading
//returns a "file pointer" $fd
$fd = fopen ("http://www.industrialradio.net:8000/title.html", "r");
//while the pointer does not equal the end of the file
while (!feof ($fd)) {
//get line advances pointer
$buffer = fgets($fd, 4096);
//print line
echo $buffer;
}
//close file
fclose ($fd);
and this is the error that i'm getting:
Warning: fopen("http://www.industrialradio.net:8000/title.html", "r") - No error in c:\inetpub\wwwroot\zrc\sc\index.php on line 8
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 12
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 15
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 12
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 15
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 12
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 15
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 12
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 15
Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\zrc\sc\index.php on line 12
any ideas how I can fix this?