Yes, this is possible and a typical use of a web server.

Using PHP, this is the same as a visitor counter where the value is written
to a text file.  A Rev-cgi can do the same thing.

Even better for you might be that each download is written to a log file
showing details you would like to keep such as date, time, elapsed time, IP
address, query string, success.

Here is a tutorial on using text files to track a visitor count
          http://www.hyperactivesw.com/cgitutorial/scripts2.html
courtesy of Jacqueline Landman Gay

Jim Ault
Las Vegas

On 9/8/08 5:19 AM, "Jim Sims" <[EMAIL PROTECTED]> wrote:

> I want to set a limit to the number of times a text file(s) can be
> downloaded.
> 
> Example, say I have a group of 100 people eligible to download a file
> (put url "http://www.somebody.com/hamburger.txt"; ) with a Rev app.
> I only want the first fifty to be able to get the file, anyone that
> tries after that would be told "Sorry, snooze and you lose".
> 
> I might want to be able to set up many such limited situations
> at the same time (different files available for different groups).
> 
> I've not done any Rev CGI 'stuff', is this the sort of thing that
> could be done with Rev CGI?
> 
> sims


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to