tedd wrote:
> If two, or more, users hit the site at the same time then a RACE
> condition may have one user getting something they didn't ask for or
> not getting anything at all.
>
> The complicated way I figure I could solve this would be to:
>
> 1. Generate a random string name for the file
tedd wrote:
Hi gang:
Here's the logic problem.
First the site:
http://php1.net/b/zip-files/
Now, the site works well enough. The user selects what they want, clicks
Submit, the order is assembled in zip file and presented to the user for
downloading.
However, as it stands now, before the
On Wed, Jul 9, 2008 at 6:11 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> generate a unique hash as the name based on the contents of the zip, then
> if 2 people
> happen to want exactly the same selection you won't have to build/zip it
> twice ...
> just check if the zip happens to exist before tr
generate a unique hash as the name based on the contents of the zip, then if 2
people
happen to want exactly the same selection you won't have to build/zip it twice
...
just check if the zip happens to exist before trying to build it.
have the script do garbage collection on old zip files ... i
On Wed, Jul 9, 2008 at 7:45 PM, tedd <[EMAIL PROTECTED]> wrote:
> Hi gang:
>
> Here's the logic problem.
>
> First the site:
>
> http://php1.net/b/zip-files/
>
> Now, the site works well enough. The user selects what they want, clicks
> Submit, the order is assembled in zip file and presented to th
Write a script that cron runs that checks dates of files and removes 1 month
old ones?
On Wed, Jul 9, 2008 at 4:45 PM, tedd <[EMAIL PROTECTED]> wrote:
> Hi gang:
>
> Here's the logic problem.
>
> First the site:
>
> http://php1.net/b/zip-files/
>
> Now, the site works well enough. The user select
6 matches
Mail list logo