Downloads

N

NAZGUL

I was wondering how do you go about having a queue system for files so that
people have to wait for a slot before downloading a file so that everyone
does not try and grab it at once?
 
S

Sid Ismail

: I was wondering how do you go about having a queue system for files so that
: people have to wait for a slot before downloading a file so that everyone
: does not try and grab it at once?
:


Imagine CNN and Google having a queue for viewers! Mayhem! You're
negating the purpose of the Internet if you want to queue. :)

Sid
 
R

Richard

NAZGUL said:
I was wondering how do you go about having a queue system for files so
that
people have to wait for a slot before downloading a file so that
everyone
does not try and grab it at once?


If you're speaking of ftp stuff, you'd need a program to handle the number
of simultaneous logins.
if you have cpanel, look for "ftp manager", that will allow you to set the
controls.
 
H

Hywel Jenkins

I was wondering how do you go about having a queue system for files so that
people have to wait for a slot before downloading a file so that everyone
does not try and grab it at once?

You'll need to assign an ID to each user that attempts a download, store
that in the database, then have the page they're looking at refresh
every so often to check whether they're able to download. You'll also
need to consider what happens when your visitors leave without
downloading the file because they can't be arsed to wait.
 
C

Chris Morris

NAZGUL said:
I was wondering how do you go about having a queue system for files so that
people have to wait for a slot before downloading a file so that everyone
does not try and grab it at once?

Have a script that locks a database table or another file, echos out
the file for download after setting correct content-type headers, then
unlocks the table. Anyone trying to download while the script is
running will wait at the lock until the first script unlocks it
(automatic on exit, in most systems).

Not useful (at least, not without modification) if
you want more than 1 but less than X simultaneous downloads, though.

I'm not sure that it's particularly useful at all, though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top