[PHP-DEV] File upload to client via Apache From: ondi (ondi <email protected>)
Date: 09/02/99

Hello!
I need to upload files to clients in some special way!
As described here:

<?
$filename="/path/to/some/file/file_name";
$size=filesize($filename);

Header("Content-Type: application/octet-stream");
Header("Content-Length: $size");
Header("Content-Disposition: attachment; filename=file_name");

readfile($filename);

?>

How can I make sure that file was downloaded successfully
or aborted?