Blueprints Tutorial arrow Scripts and Snippets arrow Random Website In An IFRAME
Jul 04 2007

Random Website In An IFRAME
Wednesday, 04 July 2007
This is a simple PHP script that allows you to show a different website in an iframe every time the page is reloaded. Great for advertising your multiple websites in traffic-exchanges.

Steps
  1. Fill a text file (urls.txt) with URLS, one per line.
  2. Include this PHP script on a page and it will pick one from the list above to display. You can opt to display in sequence or random. See below for details.

Source of randomsite.php

Source of urls.txt


 
< Prev   Next >