This worked for me I tried it out and didn't notice any missing dates or duplicated ones.
<?
$ndate = 0;
$month = 1;
$day = 1;
$year = 1920;
$stopMonth = 1;
$stopDay = 1;
$stopYear = 2006;
$startDate = date("m/d/Y", mktime(0,0,0, $month, $day, $year));
$stopDate = date("m/d/Y", mktime(0,0,0, $stopMonth, $stopDay, $stopYear));
while($startDate != $stopDate)
{
$startDate = date("m/d/Y", mktime(0,0,0, $month, $day + $ndate, $year));
$ndate = $ndate + 1;
echo $startDate."<BR>";
}
?>
Hope this helps!