[thelist] Using php/mysql to retrieve URL's

Jon Haworth jhaworth at witanjardine.co.uk
Wed Jul 24 08:25:26 CDT 2002


Hi John,

> > <img src="<?=$path . $r["filename"]?>
> >      alt="<?=$r["alt"]?>
> >      width="<?=$r["width"]?>
> >      height="<?=$r["height"]?> />
> >
>
> PHP has a very cool function, GetImageSize
> (http://www.php.net/getimagesize/ .
> This will save you from storing the width/height in the db...

Very true, and a shiny and righteous function it is.

I just feel that if you're going to all the trouble of storing image info in
a db, you might as well put the size in there - you may not be using PHP
forever, or you may want to access this image store from another language...
<shrug>

Cheers
Jon



More information about the thelist mailing list