Hey Everyone
can you help me with this script
am i missing something
how come it doesnt resize
hope you can help
thanks
<?php
function imageResize($width, $height, $target) {
if ($width > $height) {
$percentage = ($target / $width);
} else {
$percentage = ($target / $height);
}
$width = round($width * $percentage);
$height = round($height * $percentage);
return "width=\"$width\" height=\"$height\"";
}
?>
<?php
$myimage = getimagesize("images/cefasitelarge.jpg");
?>
$myimage[1], 150); ?>/>