Posted By

saturngod on 03/17/10


Tagged

image size


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrianCoyDesign


Get Image Size


 / Published in: PHP
 

URL: http://php.net/manual/en/function.getimagesize.php

  1. <?php
  2. list($width, $height, $type, $attr) = getimagesize("img/flag.jpg");
  3. echo "<img src=\"img/flag.jpg\" $attr alt=\"getimagesize() example\" />";
  4. ?>

Report this snippet  

You need to login to post a comment.