I was thinking of adding this to a website of mine for a promo.... How would you do this? Like every 500,000 impressions ( sitewide ) the page is redirected....
Using mysql you could create a table with a field named impressions. Increase the value of the impressions field everytime someone visits any page. Then check to see if it is equal to 500,000. If it is, reset it to 0, and use php like <?php header("Location: http://www.google.com"); ?> PHP:
yup, probably the most reliable way would be to use a DB as yoru datasource, then just increment a number - then modulus for 500,000 and if it = 0, then do what you gotta do