how can i check the size(height & width) of an image that is uploaded to my server, in the process of uploading?
i currently have no upload form made yet, i'm just asking in time to see how to do this.
Printable View
how can i check the size(height & width) of an image that is uploaded to my server, in the process of uploading?
i currently have no upload form made yet, i'm just asking in time to see how to do this.
You can use the getimagesize function in the GD library: http://uk3.php.net/manual/en/book.image.php
If that is size alone, try
Code:$size=filesize($_FILES['image']['tmp_name']);
image->imagename
tmp_name->temporary image name in server
If that is size alone, try
Code:$size=filesize($_FILES['image']['tmp_name']);
image->filename
tmp_name->temporary image name in server
he said height and width, not filesize.
well in the beginning i forgot to include (height and width) so that might be he read the topic and later searched and posted so this might be my fault, sorry if it is.
and yes i will need filesize(in bytes) too but just not yet.
and sorry i figured it out by going where VisualAd pointed me at, i just forgot to mark as resolved.