summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-06-07 23:03:59 +0200
committerErich Eckner <git@eckner.net>2016-06-07 23:03:59 +0200
commit463985b144412c7c14a35eca1584b116d90fb7ca (patch)
tree0e7734a7c902c0c79f41fab5fee1ec898ca2dce8
parent19e1ce038d63a71004926d8c0e4b2801ebfc0742 (diff)
downloadsourceMirror-463985b144412c7c14a35eca1584b116d90fb7ca.tar.xz
fpassthru -> while-fread-print (wegen Speichers)
-rw-r--r--mirror.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mirror.php b/mirror.php
index 0b4477b..14b41aa 100644
--- a/mirror.php
+++ b/mirror.php
@@ -71,7 +71,10 @@
$inp = fopen($pfad,"r");
if (! $inp)
die("Kann '".$quelle."' ('".$pfad."') nicht &oouml;ffnen!");
- fpassthru($inp);
+ while(!feof($inp)) {
+ $buffer = fread($inp, 4096);
+ print $buffer;
+ }
fclose($inp);
}
}