PHP/Graphics Image/image type to mime type

Материал из Web эксперт
Перейти к: навигация, поиск

Getting an Image"s MIME Type

   <source lang="html4strict">

<?php

   $info = getimagesize("button.png");
   print image_type_to_mime_type($info[2]);

?>

 </source>