Here's something I spotted the other day on my webhosts forums.
Quote:
http://www.xpenguin.com/calcbandi.php
... and then setup a cron file that checks your pages every 30 minutes or so and updates a file with your bandwidth usage for the day.
Then you could a header that gets included in all pages with a simple:
PHP Code:
CODE <?php if($bandwidth > 120000) echo "Sorry, try back tomorrow. Donations are appreciated."; else //display the normal page ?>
(Oversimplified a bit of course)
|