Re: using getimagesize on remote files
| From: | Daniel R. Anderson | Date: | Mon, 21 Apr 2003 04:26:06 +0000 |
| Subject: | Re: using getimagesize on remote files | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144599@lists.php.net to get a copy of this message | ||
Just out of curiosity, how would he guarrantee that the header included
the size?
On Mon, 2003-04-21 at 01:26, Andrew Brampton wrote:
> If you want to save bandwidth I bet it would be easy enough to write your
> own getImageSize function which uses fopen and on fread to get the header of
> the gif/jpg file then you parse it yourself. You could even code your own
> caching system if you wanted. You would need to look up the gif/jpg image
> formats which are available at www.wotsit.org.
>
> Andrew
> ----- Original Message -----
> From: "Joseph Bannon" <joethedev@yahoo.com>
> To: <php-general@lists.php.net>
> Sent: Monday, April 21, 2003 5:54 AM
> Subject: Re: [PHP] using getimagesize on remote files
>
>
> > > There is no way to fetch just the size, it fetches
> > > the entire image.
> >
> >
> > Serious? Well, this is good to know. I guess I'm
> > wasting bandwidth then.
> >
> > Thanks,
> > J.
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> > http://platinum.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>