get image width and height from image url in php

<?php

$testing = "http://dsvwebtech.com/listing/uploads/dsv.jpg";
//echo $testing;
list($width, $height, $type, $attr) = getimagesize($testing);
echo "Image width " . $width;
echo "Image height " . $height;
?>

Comments

Popular posts from this blog

dynamic create multiple ckeditor onclick event using jquery

Fatal error: Can't use method return value in write context in ci

online visitor counter