in reply to Re^3: Why I can not acess files outside cgi-bin directory?
in thread Why can I not acess files outside cgi-bin directory?

It doesn't work because it seems that the server is always thinking, openning or reading file there and the status bar stuck at ~50%. Really confused!
  • Comment on Re^4: Why I can not acess files outside cgi-bin directory?

Replies are listed 'Best First'.
Re^5: Why I can not acess files outside cgi-bin directory?
by nobull (Friar) on Mar 25, 2005 at 09:38 UTC
    Maybe the file is big. Slurping the whole file into memory can cause the process to go swap-bound.

    Try copying it a chunk at a time. (Use File::Copy or DIY).

    { local $/ = \1024; local *_; while (<READ>) { print }; }