PHP/Graphics Image/image type to mime type
Версия от 13:37, 26 мая 2010; (обсуждение)
Getting an Image"s MIME Type
<source lang="html4strict">
<?php
$info = getimagesize("button.png"); print image_type_to_mime_type($info[2]);
?>
</source>
<source lang="html4strict">
<?php
$info = getimagesize("button.png"); print image_type_to_mime_type($info[2]);
?>
</source>