find out an uploaded image dimensions
Posted: Mon Nov 28, 2005 2:58 am
Once a user has uploaded a image (or while he is uploading the file) is there any way that I can find out the dimensions of the image?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
The following two what? variables? functions? commands? sorry...but I need a little bit more of an explanation than that. Could you provide an example?...the following two...
Code: Select all
<?php
$size = getimagesize ("img/flag.jpg");
echo "<img src=\"img/flag.jpg\" {$size[3]}>";
?>