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

calculate distance between two points in jquery

How To Read JSON Data Response Using PHP?

dynamic create multiple ckeditor onclick event using jquery