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

Posted by Hendri Adriaens on 02/23/07 17:09

> Well, not really, somewhat slower, but mainly somewhat headvier on the
> server.

Ok, thanks. So, a chunksize of 1 byte should be optimal for my purpose. I
will
test the load differences for the server.

> Nope, it's in the browser itself, the cancelling of a download isn't a
> HTTP feature. You can add a dialogue on the page, or possibly something
> with javascript, it will not help: the browser dialogue will still come
> into play in the end.

Bad luck.

> There may be a possibility to load the file into a hidden frame or
> something, and to check that with javascript. This will not help your php
> script, but javascript could fire a request on succes, ans you only delete
> the file on that second request. It would mean nothing get's deleted with
> javascript disabled, and I'm a little bit fuzzy on the details...

Ok, no problem, me neither.

> Then again: I do not know what the exact purpose of you script is in
> general, maybe it's OK to keep the small files and delete them
> periodically after a check with filemtime()?

I just wanted to offer users of a sharing environment to remove the file
from
the server automatically after the file was downloaded. So a period clean up
is not really what I want. I don't want to remove files that shouldn't be
removed.

But thanks for your help and answers! But if you find any other ideas than
chunksize=1, I will be more than happy to test them :)

Best regards,
-Hendri.

 

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

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