title: php days between two dates list
body: <p>Do you know what the problem is by looking at the code?</p>
  
  <p>I would be happy if you helped me:</p>
  
  <pre><code>list($from_day,$from_month,$from_year)    = explode(".","27.09.2012");
  list($until_day,$until_month,$until_year) = explode(".","31.10.2012");
  
  $iDateFrom = mktime(0,0,0,$from_month,$from_day,$from_year);
  $iDateTo   = mktime(0,0,0,$until_month,$until_day,$until_year);
  
  while ($iDateFrom &lt;= $iDateTo) {
      print date('d.m.Y',$iDateFrom)."&lt;br&gt;&lt;br&gt;";
      $iDateFrom += 86400; 
  }
  </code></pre>
  
  <p>Date of writing the same problem 2 times</p>
  
  <p>October (31) for writing 2 times in history draws the ends October 30th: (</p>
  
  <p>27.09.2012</p>
  
  <p>28.09.2012</p>
  
  <p>...</p>
  
  <p>26.10.2012</p>
  
  <p>27.10.2012</p>
  
  <p><strong>[[28.10.2012]]</strong></p>
  
  <p><strong>[[28.10.2012]]</strong></p>
  
  <p>29.10.2012</p>
  
  <p>30.10.2012</p>