i'm really REALLY close now thanx to everyones help here at the monestary (thanx one and all...). the following code ALMOST works, but, the files i recieve are of (0)zero bytes. can someone take a breif moment to see why it 'acts' like the file gets to the script, but creates the two files of no length?
my(@fName) = ('Function','UserID','Signature','Session','Message','AUT +_File','THM_File');; $fHandle = CGI::->new(); $fCounter = 0; while ($fCounter <= 4) { $fBuffer[$fCounter] = $fHandle->param($fName[$fCounter]); $fCounter = $fCounter + 1; } $fBuffer[5] = $fHandle->upload($fName[5]); $fBuffer[6] = $fHandle->upload($fName[6]); if ($fBuffer[0] ne "Proccess") {goto BadAccess} if (length($fBuffer[1]) < 1) {goto BadAccess} if (length($fBuffer[2]) < 1) {goto BadAccess} if ($fBuffer[3] ne "thread2") {goto BadAccess} if (length($fBuffer[5]) < 5) {goto GoBack} if (length($fBuffer[6]) < 5) {goto GoBack} $fName[5] = substr($fBuffer[5], rindex($fBuffer[5], "\\") + 1); $fName[6] = substr($fBuffer[6], rindex($fBuffer[6], "\\") + 1); if (uc(substr($fName[5], length($fName[5]) - 4)) ne ".JPG") {goto GoBa +ck} if (uc(substr($fName[6], length($fName[6]) - 4)) ne ".JPG") {goto GoBa +ck} mkdir ("Gallery", 0775); mkdir ("Gallery/80x60", 0775); mkdir ("Gallery/640x480", 0775); open (OUTFILE, ">Gallery/640x480/$fName[5]"); print OUTFILE <$fBuffer[5]>; close (OUTFILE); open (OUTFILE, ">Gallery/80x60/$fName[6]"); print OUTFILE <$fBuffer[6]>; close (OUTFILE); GoBack: BadAccess: EndOfScript:


you mean there's any easier way?

In reply to combined text&files by PriNet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.