PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
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.
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
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