Blunder I ever made

I was writing a php code to parse images from a particular url . At the begining I used as a testing url.

When I tested the php code from my local machine (http://localhost) it took time to get data from a remote url ( . So I decided to check this code with my locally testing web page. So i write the code as bellow :

file: index.php

This is the biggest mistake I made that day. Did you find the mistake ?? Else try this code with your local machine. You can see your big blunder . Not only you, your system also will get hang .. :)

Because this is the longest recursive call you can call with your web server !!!