in reply to PHP through PERL

FireBird34 wrote:
One main reason I'm using PHP, is because every PERL script I've tried to use for uploading, it has not worked on my server (Win32- Apache).

Oh for chrissake. With a newish version of CGI.pm (version 2.47+, you do:

$fh = $query->upload('FILE'); while (<$fh>) { $filecontents .= $_; }
and with older versions, you do:
my $file = $query->param('FILE'); my ($bytesread,$buffer,$filecontents); while ($bytesread = read($file,$buffer,1024)) { $filecontents .= $buffer; } undef $bytesread; undef $buffer;
In both cases the contents of the file end up in $filecontents and can be printed to a local file or worked on directly or whatever.

-- Regards,
Helgi Briem
helgi AT decode DOT is