Recent Post

Dear reader, this blog has been moved to here

Friday, 14 June 2013

[PHP] GET IMAGE HEIGHT AND WIDTH



Hi all,

You need to get an image height and width in PHP? which normally use in passport or profile pictures...now try this code am going to give you.

 <head>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHP Get Image Dimensions</title>
</head>
<body>
<?php
list($width, $height) = getimagesize("images/banner.png");
echo "Width: " .$width." Height: " .$height;
?>
</body>
</html>
Hope it works


Email Newsletter



Smiley :)
:D
:)
:[
;)
:D
:O
(6)
(A)
:'(
:|
:o)
8)
(K)
(M)

No comments:

Post a Comment