Re: help with perl
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/21/04
- Previous message: Barry Margolin: "Re: Internet on Cogeco Cable"
- In reply to: News sender: "help with perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 21 Apr 2004 00:55:43 -0400
In article <c62s0a$l08$1@news.ox.ac.uk>,
"News sender" <renping.liu@eng.ox.ac.uk> wrote:
> Hi there,
>
> I am using CGI and Perl for uploading files. The Perl code is included.
>
> The code works fine on PC and Linux (both run apache 2.0.39). But when I run
> the code on Unix (solaris7, also run Apache2.0.39), only the filename is
> uploaded, not the contents:
>
> -rw------- 1 nobody nobody 0 Apr 19 16:10 file1
> -rw------- 1 nobody nobody 0 Apr 19 16:35 file2
>
> You can see the file names are right: file1, file2. But the size of each
> file is 0.
>
> The permission of the directory is set as 777:
> drwxrwxrwx 2 nobody nobody 512 Apr 2 15:33 shared
>
> There is no error messages in the Apache log files.
You're not checking for errors from "print OUTFILE $buffer" or "close
OUTFILE". If you don't report the errors, why would you expect them to
get into the log file?
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Previous message: Barry Margolin: "Re: Internet on Cogeco Cable"
- In reply to: News sender: "help with perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]