Hi all,

    OK, so this sounds like an easy thing.  An I'm certain that it IS. 
However I;m still running into problems here.  I am simply trying to
upload a picture to my server by method of an online form.  Please see
the code snippet below:

        open (UPLOAD, ">$filepath") || &Error("Could not write $filepath");
        while ($bytesread=read($picture,$buffer,1024))
        { print UPLOAD $buffer; }
        close (UPLOAD);

$picture is the path to the picture on the user's system.
$filepath is the full path (including filename) to the file I would like
to write.
I'm doing this from a windows XP desktop to a RedHat 9 server.
The file will be created, but it is a zero-byte file.  Strange that it can
create the file, but not put any content into it.  Must be having problems
reading the file from the desktop.

Any ideas?
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to