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

Change your code to test that your open succeeds:

open( READ, "<$filename" ) or die "Failed to open $filename - error $! +";

That might provide some clues in your webservers error log.

Steve
---
steve.org.uk

Replies are listed 'Best First'.
Re^4: Why I can not acess files outside cgi-bin directory?
by perlfeng (Initiate) on Mar 24, 2005 at 22:19 UTC
    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!
      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 }; }