I’m trying to get this piece of script to work, but it keeps dying
$currentdays = intval(date("t"));
echo $currentdays; //echoes 30 as we're in April
$i = 1;
while ($i <= $currentdays){
echo $day;
}
It keeps dying with no error. I feel like it’s timing out, but it’s certainly taking its time.
You need to increment
$i. 1 will always be less than 30, creating an infinite loop.