bolin
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Downloads
Gallery
Store
Posts posted by bolin
-
-
File upload succeeded...
Sent: <?php echo $_FILES['file']['name']; ?>
Size: <?php echo $_FILES['file']['size']; ?> bytes
Type: <?php echo $_FILES['file']['type']; ?>
php image resize
in PHP
Posted
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); ?>/>