Load an image in PHP as soon as it’s created
<p>I'm completely newbie to PHP. I wanna write a code that waits for an image to be created in the server and as soon as it’s created, loads it on the browser. 
[In fact, first of all a request is sent to the server, then an image is created based on the request. I want the code to constantly check the server and as soon as the image is created, loads it on the browser]
What should I do?</p>
