/ Published in: PHP
The script that creates the thumbnail wlll also need to output it in an image format. This means we will be using the ordinary tag which links to a PHP file rather than an image.
URL: http://www.webgeekly.com/tutorials/php/how-to-create-an-image-thumbnail-on-the-fly-using-php/