| 1 |
<?php |
<?php |
| 2 |
// $Id: filemanager.module,v 1.17 2006/09/12 17:53:20 drewish Exp $ |
// $Id: filemanager.module,v 1.18 2006/09/14 06:06:30 drewish Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @defgroup filemanager File Upload/Download Manager |
* @defgroup filemanager File Upload/Download Manager |
| 1040 |
|
|
| 1041 |
// Transfer file in 1024 byte chunks to save memory usage. |
// Transfer file in 1024 byte chunks to save memory usage. |
| 1042 |
if ($fd = fopen($source, 'rb')) { |
if ($fd = fopen($source, 'rb')) { |
| 1043 |
|
set_time_limit(0); |
| 1044 |
while (!feof($fd)) { |
while (!feof($fd)) { |
| 1045 |
print fread($fd, 1024); |
print fread($fd, 1024); |
| 1046 |
|
ob_flush(); |
| 1047 |
|
flush(); |
| 1048 |
} |
} |
| 1049 |
fclose($fd); |
fclose($fd); |
| 1050 |
} |
} |