- file_get_contents: documentation ( source)
- getimagesize: documentation ( source)
- header: documentation ( source)
<?php
if(@!is_array(getimagesize('http://webimg.makegameserver.com/blog/usrUplds/ap-4e84a9810e7cd4474cf8bf2273d3a744.png')))
{
header('Content-type: image/png');
echo file_get_contents('http://webimg.makegameserver.com/blog/usrUplds/ap-4e84a9810e7cd4474cf8bf2273d3a744.png');
} else echo 'error, file is not a valid image.';