note 34926 deleted from function.getimagesize by didou
| From: | didou@php.net | Date: | Tue, 12 Aug 2003 10:37:12 +0000 |
| Subject: | note 34926 deleted from function.getimagesize by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53989@lists.php.net to get a copy of this message | ||
Note Submitter: mf22cs at nospam-student dot hik dot se
----
A better way, since you should use CSS instead of attributes of tags, to do inte would be:
$imginfo = getimagesize($filename);
$width = $imginfo[0];
$height = $imginfo[1];
$dimension = "style=\"width: $width; height: $height;\"";