View Single Post
Old 05-06-2006, 09:59 AM  
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
This PHP requires a separate text file to be created for 0-60 seconds:

Code:
$num = date("s");
$ads = "/path/to/text/file/$num.txt";

if (file_exists($ads)) {

$ads_in = file ("$ads");

for($i = 0; $i < sizeof($ads_in); $i++) 
{ print("$ads_in[$i]\n"); }

} else {
print("Try Again - $num.txt - $ads");
}
date("s") can be changed to whatever time interval you want and will require a text file for each possible value.

Just set the text file up like you would normally code your HTML.

Last edited by mikeyddddd; 05-06-2006 at 10:01 AM..
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote