Re: image handling

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

 



On 4/16/05, Dasmeet Singh <singhdasmeet@xxxxxxxxx> wrote:
> I have a form on my website that allows users to upload photographs..
> 
> 1. How to find out the file type they are uploading..like jpeg or png or
> gif?
> 
> 2. Also is there any way to find out size and resolution of the image?

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

You can use getimagesize to get the size and type of the image as well
as some other information possibly usefull information.

-- 
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