Re: Uploading Images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 1 Nov 2004 07:44:13 -0800, bb9876 <bradbrevet@xxxxxxxxxxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux