Otra forma de hacerlo
Código PHP:
Ver original<?php
$start = new DateTime('2011-12-15');
$end = new DateTime('2011-12-30');
while(true){
echo $start->format('Y-m-d') . '<br />';
$start->add(new DateInterval('P1D'));
if($start->getTimestamp() > $end->getTimestamp()){
break;
}
}