Jump to content

bolin

New Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by bolin

  1. 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");

     

    ?>

     

     

     

    cefasitelarge.jpg

    $myimage[1], 150); ?>/>

×
×
  • Create New...