Re: tracking DAILY web hits for summary reports

From: Date: Fri, 07 Jul 2000 16:01:58 +0000
Subject: Re: tracking DAILY web hits for summary reports
Groups: php.general 
Request: Send a blank email to php-general+get-5397@lists.php.net to get a copy of this message
Paul, To expand on what Joe said: function makeTimeStamp($date) { $pieces=explode("/",$date); return mktime(0,0,0,$pieces[0],$pieces[1],$pieces[2]); } $start=makeTimeStamp("06/15/2000"); $stop=makeTimeStamp("07/14/2000"); $current=$start; while($current<=$stop) { echo date("d-M-y",$current) . "<BR>"; $current=mktime(0,0,0,date("m",$current),date("d",$current)+1,dat e("Y",$current)); } Regards, Carroll Barrett

« previous php.general (#5397) next »