[eluser]Bogdan Tanase[/eluser]
your code looks like it's going to cause a stack overflow, since it's a recursive function and it doesn't seem to end. Although I'm pretty sure it will time out first (script max_execution_time)
Depending on your purpose I think you should use some sort of scheduling (crontab, or smth similar) to run your script at a specific interval, otherwise your script will run continuously, and eventually time out.
otherwise, if you want to run the script directly the correct way would be this:
Code:
while($condition==TRUE) //when you want to end the loop, set $condition to FALSE
{
// do code
sleep($sleepTime);
}