Re: Image upload get file dimensions
| From: | Chris Payne | Date: | Mon, 23 Jun 2003 19:12:14 +0000 |
| Subject: | Re: Image upload get file dimensions | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-28821@lists.php.net to get a copy of this message | ||
Hi there,
Thanks just found this page as your email arrived :-) Appreciate the
pointer though.
Chris
> http://us4.php.net/manual/en/function.getimagesize.php
>
> > Hi there everyone,
> >
> > In short, I use the following to upload an image to the server:
> >
> > $max_size = 400000;
> > if (is_uploaded_file($userfile)) {
> >
> > all works great, but what I want to do is store the file details in my
> > MySQL DB, how can I easily find out the image width and height etc ....
> > from the uploaded image so that I can store this information in the DB?
> >
> > Thanks for your help everyone :-)
> >
> > Chris
> Chris
>
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>