Forum Moderators: coopster

Message Too Old, No Replies

image height/width

         

bobnew32

2:09 am on Nov 12, 2003 (gmt 0)

10+ Year Member



I'm uploading an image to in php, and during the process of uploading I need to know the length and width of it (so it can't be too long or too small). How would I do that? The only info you'd need is the $form_data which is the image itself. Try not telling me too hard, and only the most basic php code. Thx

Oops, how would I find its file size also

Birdman

3:07 am on Nov 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[php.net...]

That wasn't too hard, huh?

Just kidding...all the answers are there.

DrDoc

4:56 am on Nov 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just remember it can be a bit tricky checking temporary files, before moving the uploaded file.
Sometimes it's easier to move the file first, then check it, then delete it if needed.