in reply to Uploading Multiple Photos and Resizing before saving Help!

what isn't working? the re-sizing, saving, or printing of new dimension sizes? the code  print "<br>2-$width2, $height2<br>"; looks wrong, as perl will likely turn it into a math result of two minus the value of width2 variable. did you mean?
print '<br />2-' . "$width2" . ',' . "$height2" . '<br />';
the hardest line to type correctly is: stty erase ^H

Replies are listed 'Best First'.
Re^2: Uploading Multiple Photos and Resizing before saving Help!
by Anonymous Monk on Nov 16, 2010 at 03:09 UTC
    This print "<br>2-$width2, $height2<br>"; was just a test code it doesn't belong to the program. Forgot to removed it before posting, sorry!
      have you tried running it from command line with debug? for this you can either read the CGI doc on how to do it OR just temporarily mod the program and hardcode a filename in for processing. I assume the typical suspects (file permissions) are all ok for the CGI running in the webserver environment can write files to the directory?
      the hardest line to type correctly is: stty erase ^H