Source Rally PHP Community Scripts .. Sign up .. Login
Using the http://www.sourcerally.net/Scripts/21-PHP-image-class class to extract the type of an image.
Access: Public      Tags: gdlib, image, primitive
Add to favourites       Subscribe comments       Copy code       Bookmark
<?
$path 
'/path/to/image.jpg';
echo 
image::getType($path);
?>
Add to favourites       Subscribe comments       Copy code       Bookmark
Sign up to add your own comment here!

Comments

Marius - 26-11-2010 10:41
Add to friends       Mail user
excelente...


gracias.
More comments: 1
Shared by:

regin

Mail user Add to friends
All user contributed content is available under the LGPL unless specified otherwise.
Remaining copyrights Regin Gaarsmand © 2006-2008
About SourceRally.net
Adelgazar sin trucos Programador PHP