Counting data from users and decreasing their money balance?
Posted: Tue Jul 04, 2006 3:45 am
I wish to create a site that requires people to pay to be able to view its content. But I want it so that people can purchase, for example $15.00 worth of time, and they get 30MB worth of traffic to view that site, $0.50c per MB. They will be able to login to their given account to access the site.
Is there a PHP function or command that counts the amount of bytes the user is receiving from the webpage they are on, and thus subtracting from their account balance which will be stored in a field under their username in MySQL?
The same sort of system is found in schools and universities where students receive an account balance each month and they can only use that much moneys worth of bandwidth in the month, otherwise they will get a msg saying, "you have run out of credit", or something like that.
If you have any ideas, please post, many thanks.
Is there a PHP function or command that counts the amount of bytes the user is receiving from the webpage they are on, and thus subtracting from their account balance which will be stored in a field under their username in MySQL?
The same sort of system is found in schools and universities where students receive an account balance each month and they can only use that much moneys worth of bandwidth in the month, otherwise they will get a msg saying, "you have run out of credit", or something like that.
If you have any ideas, please post, many thanks.