- finfo_file: documentation ( source)
- finfo_open: documentation ( source)
- is_readable: documentation ( source)
<?php
echo is_readable('http://www.joomlaworks.net/images/demos/galleries/abstract/7.jpg') ? 'readable' : 'not readable';
$resource = finfo_open(FILEINFO_MIME_TYPE);
echo finfo_file($resource, 'http://www.joomlaworks.net/images/demos/galleries/abstract/7.jpg');