You are here: Re: check if file was downloaded « PHP Programming Language « IT news, forums, messages
Re: check if file was downloaded

Posted by Rik on 02/23/07 16:07

On Fri, 23 Feb 2007 16:56:07 +0100, Hendri Adriaens
<spotjeREMOVE@THISgmail.com> wrote:

>> Silly me.... replace user_aborted() with connection_aborted()....
>
> Sorry, but now the code following readfile_chunked always gets executed
> for
> small files, even if cancel was clicked. So it's the same as the original
> situation, unfortunately.

Hmmmz, another solution could be, if these problems only occur with small
files, to make the chunk size drastically maybe that helps...

Then again:
If the user hits cancel, but the file is already downloaded (most browsers
start immediately), there's no way for php to distinguish that from an
actual download. The connection is already over & done. So if the file is
received earlier then the user has hit the cancel button, nothing can be
done.

--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация