"cdt_sylvestre" <cd*************@relayeur.com> wrote in message
news:3f***********************@news.free.fr...
hi,
i m trying to find how to access a variable of variable (which is an
image) i want to know the size of the picture
the name of the picture is photo1
next one is photo2, next one is photo3 ...
for ($i=1;$i<$MAX_PHOTOS;$i++)
{
$photo='photo'.$i;
$$photo_size; //don t work
}
I dont quite get where your comming from, I think a differnt language or oop
(short for oops)
a variable does not have properties, it is not an object as in VB, java, and
others...
try
$photo = "photo$i"; // just a little cleaner
$photo_size = filesize($photo); // if your wanting file size
--
Mike Bradley
http://www.gzentools.com -- free online php tools