On Mon, 1 Nov 2004 07:44:13 -0800, bb9876 <[EMAIL PROTECTED]> wrote:
> I want to allow people to upload images but I want to be able to put
> limitations on it, such as allow only jpg and gif extensions

$_FILES['userfile']['type'] contains the mime type.

> and make sure
> the image is no larger than 60x60. Is there any way to do this?

getimagesize( $_FILES['userfile']['tmp_name'] ) contains the size info.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to