I updated a centos machine from this code... you ripper, it works!
[glcas.git] / unittests / getfilebits.php
diff --git a/unittests/getfilebits.php b/unittests/getfilebits.php
new file mode 100644 (file)
index 0000000..ce10bc7
--- /dev/null
@@ -0,0 +1,14 @@
+<?php 
+
+$fl = fopen("http://ftp.iinet.net.au/pub/centos/6/updates/x86_64////RPMS/kernel-2.6.32-71.29.1.el6.x86_64.rpm", "r");
+
+echo "<pre>"; print_r($http_response_header); echo "</pre>";
+while(!feof($fl)) {
+       $d = fread($fl, 1024);
+       echo $d;
+       flush();
+}
+
+
+
+?>
\ No newline at end of file