Re: get image size function
| From: | dempsejn at georgetown dot edu | Date: | Wed, 09 Apr 2003 18:17:06 +0000 |
| Subject: | Re: get image size function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143135@lists.php.net to get a copy of this message | ||
hey tyler,
just looking at that quickly, i'd try testing it with print_r to see
the structure; if you're getting the string "Array" then its obviously
an array that you have to then select something from. print_r($var)
should make it clear.
jack
----- Original Message -----
From: "Tyler Durdin" <linuxgeek23@hotmail.com>
Date: Wednesday, April 9, 2003 2:13 pm
Subject: [PHP] get image size function
> When I run this script:
>
> <?php
> $size = getimagesize ("pictures/pictures/bobby.jpg");
> echo "<img src=\"pictures/pictures/bobby.jpg\" {$size[3]}>";
> ?>
>
> I get Array (the word Array) and a picture of the image. Why am I
> not
> getting the image size? Did I not configure php to use the image
> functions?
> If that's the case how can I correct this problem? If it's not the
> case what
> is going on here? Please help!!!
>
>
>
>
>
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>