cvs: phpweb / do_download.php
| From: | Gabor Hojtsy | Date: | Sat, 15 Feb 2003 13:03:32 +0000 |
| Subject: | cvs: phpweb / do_download.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15726@lists.php.net to get a copy of this message | ||
goba Sat Feb 15 08:03:32 2003 EDT
Modified files:
/phpweb do_download.php
Log:
Flush output (write out a space, so headers can be sent)
Index: phpweb/do_download.php
diff -u phpweb/do_download.php:1.21 phpweb/do_download.php:1.22
--- phpweb/do_download.php:1.21 Tue Feb 4 14:12:32 2003
+++ phpweb/do_download.php Sat Feb 15 08:03:31 2003
@@ -13,6 +13,11 @@
// Redirect to the particular file
header('Location: ' . $mr . 'distributions/' . $df);
+// Try to flush output, and make the browser
+// really download the file, even is $LOG_SERVER is down..
+echo " ";
+flush();
+
log_download();
// Register the log function as a shutdown function to let the