i tried to run the code:
$handle = fopen ("http://www.php.net/", "rb");
$contents = "";
do {
$data = fread($handle, 8192);
if (strlen($data) == 0) {
break;
}
$contents .= $data;
} while(true);
fclose($handle);
but it gives me warnings:
Warning: fopen(http://www.php.net/): failed to open stream: Bad file descriptor in file.php line 11
Warning: fread(): supplied argument is not a valid stream resource in file.php on line 14
Warning: fclose(): supplied argument is not a valid stream resource in file.php on line 21
Could you help me please?