Page 1 of 1
LIMITS
Posted: Mon May 21, 2007 12:14 am
by darkfire
Hello,
I am making a download website and I need a way to limit the amount of downloads a month to the costumers. does anyone know how to do this?
I need it to limit to the user not the ip.
Posted: Mon May 21, 2007 4:09 am
by josh_
in your database, have a column for number of downloads each user has used. before a user makes a download, check that they are not beyond the limit. increment that number for every download your user makes. run a cron job to reset the number at the end of the month.

Posted: Mon May 21, 2007 1:35 pm
by darkfire
do you have a php code that could do that?
Posted: Mon May 21, 2007 3:04 pm
by thiscatis
the php will be unique because of the tables and methods you use to interact with your database.
Give it a shot and a lot of people will gladly help out improving the code
Posted: Wed May 23, 2007 8:01 pm
by darkfire
I know the code is going to be unique but i am very new in php and I was wondering if you could give me kinda a script then just put the stuff i would need to change in asterix ex.*put user table name here*
Thank you