PDA

View Full Version : [PHP] easily work with picture uploads


friday
02-11-2003, 09:14 AM
How can I easily work with picture uploads.
Once the picture is uploaded through a form, how can I determine the width and height of the picture for exemple?

scoutt
02-11-2003, 09:24 AM
by using getimagesize() or imagex() imagey()

friday
02-11-2003, 09:26 AM
What exactly will the first one return? Can you perhaps give a little example of a script where it checks if width > 300?
thanks!

<htmlite>
02-11-2003, 09:30 AM
This may help?

http://www.php.net/manual/en/function.getimagesize.php

friday
02-11-2003, 10:02 AM
hmmmmmmmmyeah! thanks. damn all those functions i've never heard of. i'd better get myself a good book. though i guess there won't be any in my language yet for php 4.3.0...
still gotta do a good search.

scoutt
02-11-2003, 10:10 AM
friday, tha php manual has all of the functions in it. no need to buy a book if the manual is free. it will answer 95% of all your questions.