while loop with number of days in a month
<p>I'm trying to get this piece of script to work, but it keeps dying</p>

<pre><code>$currentdays = intval(date("t"));

echo $currentdays; //echoes 30 as we're in April
$i = 1;
while ($i &lt;= $currentdays){
    echo $day;
}
</code></pre>

<p>It keeps dying with no error. I feel like it's timing out, but it's certainly taking its time.</p>
