On Thursday 15 January 2004 12:03, Matt Hedges wrote:

> with ya'lls help I've gotten a php that uploads only a jpg... now I'm
> trying to add a constraint that limits the width and size...  I've been
> reading the manual (don't understand the error_messages)... and can't
> figure it out... this is what I have so far:

You can use getimagesize() to:

 i) determine whether uploaded file is a valid JPEG
ii) the (pixel) size of the image

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
QOTD:
        "Do you smell something burning or is it me?"
                -- Joan of Arc
*/

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

Reply via email to