By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,953 Members | 1,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,953 IT Pros & Developers. It's quick & easy.

Detecting user abort or timeout [download script]

P: n/a
I'm writing a download script in php. This script sends files using
echo in order to limit download speed. My script has to do something
after connection abort. Everything is ok unless client pauses
downloading.

I'm using ignore_user_abort() and I'm checking connection_status()
while sending a file. When the user aborts connection, my loop breaks
and script finishes its job. But if the user pauses connection, the
script still sends a file!

I want my script to execute some commands after a break of the loop and
not to send file, if the user doesn't receive it! I don't know how to
implement that. Is it possible to do such script? Please help me. TIA

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
>I'm writing a download script in php. This script sends files using
echo in order to limit download speed. My script has to do something
after connection abort. Everything is ok unless client pauses
downloading.

I'm using ignore_user_abort() and I'm checking connection_status()
while sending a file. When the user aborts connection, my loop breaks
and script finishes its job. But if the user pauses connection, the
script still sends a file!


How does a user running a web browser PAUSE a connection? (intentionally,
that is)

Gordon L. Burditt
Jul 17 '05 #2

P: n/a

"Gordon Burditt" <go***********@burditt.org> wrote in message
news:cp********@library1.airnews.net...
How does a user running a web browser PAUSE a connection? (intentionally,
that is)


I imagine he means people downloading the file using a download manager
perhaps?

Ta,
G.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.