Do you have a question? Post it now! No Registration Necessary. Now with pictures!
July 20, 2004, 12:03 pm
rate this thread
this to work. Is there a better way? All I want is a quick and dirty way
to populate a file with UNIX time stamps...
$vc = 'viscounter_test.txt';
$avdaily = 5; average daily
$total_count = (365 * $avdaily); //time period = one year
$interval = (86400)/$avdaily; //evenly spaced intervals
$visit = time() - (31536000);
//$next_time = ($first_time + $interval)
$fp = fopen($vc,"a");
for($i = 1; $i > $total_count; $i++)
$visit = $visit + ($interval * $i);