|
-
Feb 12th, 2010, 04:46 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] image
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.
Last edited by Justa Lol; Feb 12th, 2010 at 05:07 AM.
-
Feb 12th, 2010, 09:14 AM
#2
Re: image
You can use the getimagesize function in the GD library: http://uk3.php.net/manual/en/book.image.php
-
Feb 13th, 2010, 11:02 AM
#3
Fanatic Member
Re: image
If that is size alone, try
Code:
$size=filesize($_FILES['image']['tmp_name']);
image->imagename
tmp_name->temporary image name in server
-
Feb 13th, 2010, 11:02 AM
#4
Fanatic Member
Re: image
If that is size alone, try
Code:
$size=filesize($_FILES['image']['tmp_name']);
image->filename
tmp_name->temporary image name in server
-
Feb 13th, 2010, 11:25 AM
#5
Re: image
he said height and width, not filesize.
-
Feb 14th, 2010, 04:16 AM
#6
Thread Starter
Fanatic Member
Re: image
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|