Re: GetImageSize

From: Date: Wed, 09 May 2001 16:42:31 +0000
Subject: Re: GetImageSize
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52140@lists.php.net to get a copy of this message
What version of PHP are you using? According to the manual: "URL support was added in PHP 4.0.5" Moody "Joseph Bannon" <JBannon@advparadigm.com> wrote in message news:0F3DD2FF27EAD311A5C900508B5C2A6702790099@apds_exp3.advparadigm.com... > For some reason, I can get the image image size for an image on the local > machine, but remotely give me an error.... > > > My code.... > > <?php > $size = GetImageSize ("images/title.gif"); > echo "size: $size[0]<p>"; > echo "size: $size[1]<p>"; > echo "size: $size[2]<p>"; > echo "size: $size[3]<p>"; > $size = GetImageSize > > ("http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg"); > echo "size: $size[0]<p>"; > echo "size: $size[1]<p>"; > echo "size: $size[2]<p>"; > echo "size: $size[3]<p>"; > ?> > > > > Output.... > > > size: 310 > size: 80 > size: 1 > size: width="310" height="80" > Warning: Unable to open > http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg > in > web/imagetest.php on line 13 > size: > size: > size: > size: > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#52140) next »