$handle = fopen("http://www.mypage.net/index.html", "r");
$outhandle=fopen ("test.php","w");
while (!feof($handle)) {
$buffer=fread($handle,4096);
fputs($outhandle,$buffer);
}
fclose($handle);
fclose($outhandle);
include("test.php");
this code works ok.. BUT... what if I want to get a page on port 8000 ? i have tried putting www.mypage.net:8000
I also forund som info saying "
It appears that fopen() always opens a connection to port 80 when the location string starts with "http://" .. so I tried both with and without "http://"