Thursday, January 10, 2008

Function to get image width and height

function getFileSizeW($filePath){
$blah = getimagesize($filePath);
$type = $blah['mime'];
$width = $blah[0];
return $width;}

function getFileSizeH($filePath){
$blah = getimagesize($filePath);
$type = $blah['mime'];
$height = $blah[1];
return $height;}

No comments:

Post a Comment

Please put your comments here. your questions, your suggestions, also what went wrong with me.