You are here: Re: A follow-up to my download-all-files-as-a-zip-file post « PHP Programming Language « IT news, forums, messages
Re: A follow-up to my download-all-files-as-a-zip-file post

Posted by Matt Madrid on 08/05/07 03:04

techusky@gmail.com wrote:
> I made a script that successfully creates a .zip file of all the files
> in a directory on my web server, but now what I haven't figured out
> how to do is how to have it automatically deleted when the user
> successfully downloads it, as otherwise my server would eventually get
> clogged up with all these zip files.
>
> Any help/suggestions?
>
> Thanks
>
I'd probably just create a cron job that deletes any zip files older than
a day. That's the simplest way I can think of. Of course, depending on the
amount of disk space you have available, and how trustworthy your users are,
this could open you up to a DOS attack of sorts. A person could keep clicking
on the download link (or automate it) and possibly fill up your whole disk in
a day.

 

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

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