Re: using getimagesize on remote files

From: Date: Mon, 21 Apr 2003 05:26:55 +0000
Subject: Re: using getimagesize on remote files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144598@lists.php.net to get a copy of this message
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 > >

« previous php.general (#144598) next »