***I need someone to code a small PHP script that will estimate the profit made by a site using their public transactions history.***
The site involved is a simply flip coin game: A user is buying credit, and place their guess what side of the coin will fall. If they guess right (head or tile) they get back 200% of their spend otherwise they loose their bet.
Check the public history here:[url removed, login to view]
Using data from this page you have to create an profit estimator on how much profit the site makes.**
Using a cronjob you get the page content once every hour and record in db all the transactions from the page.
Transactions with "lose" status add them in db as profit for [url removed, login to view] with "win" status record as loose for us and deduct the amount from the 'profit'.
In admin Id like to see the profit made daily,weekly,monthly. With another cronjob you can email me the stats at midnight the profit made over the day.