Ensure data is sent to client?
| From: | Matthew Hagerty | Date: | Tue, 26 Sep 2000 16:47:08 +0000 |
| Subject: | Ensure data is sent to client? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33744@lists.php.net to get a copy of this message | ||
Greetings,
How would one go about knowing if the complete contents of a file was successfully sent to a client browser? In an application I am writing I have to restrict users to only downloading a file once, but if the download fails they should be able to have another attempt.
I was looking and fpassthru and readfile, but neither of them seems to wait and see if the data was actually sent successfully, they just seem to dump to stdout and return.
Is there any way to detect that the entire file contents actually made it to the client?
Thanks,
Matthew