Hi, I am new to PHP (and this board), got a little ASP and general programming knowledge.
The below code does work, but doesn't grab all; only the first 19_432 bytes it seems. Why?
<?
$url = "http://uran.nu/nummer.txt";
$file = "grabbat.txt";
ini_set('max_execution_time', '30');
flush ();
$fd= fread(fopen($url, "r"), 10000000);
echo $fd;
$tmpfile = fopen($file,"w+");
$fp = fwrite($tmpfile,$fd);
fclose($tmpfile);
flush ();
?>
(The nummer.txt file contains numbers from 1 upwards, one every row, is just for testing purposes)
The code is live at http://uran.nu/grabbertest.php