note 31594 modified in function.constant by vrana
| From: | vrana@php.net | Date: | Tue, 17 Aug 2004 14:55:14 +0000 |
| Subject: | note 31594 modified in function.constant by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79728@lists.php.net to get a copy of this message | ||
Maybe this is useful:
$file_ext is the file Extension of the image
<?php
if ( imagetypes() & @constant('IMG_' . strtoupper($file_ext)) )
{
$file_ext = $file_ext == 'jpg' ? 'jpeg' : $file_ext;
$create_func = 'ImageCreateFrom' . $file_ext;
}
?>
--was--
Maybe this is useful:
$file_ext is the file Extension of the image
if ( imagetypes() & @constant('IMG_' . strtoupper($file_ext)) )
{
$file_ext = $file_ext == 'jpg' ? 'jpeg' : $file_ext;
$create_func = 'ImageCreateFrom' . $file_ext;
}
http://php.net/manual/en/function.constant.php