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

Thanks a lot for your guys. The suggestions are all helpful. Now I have cleared the following issues:

1. It is not because of the server since the server did not give the errors in error log.

2. The script itself works fine without error or warning when it is running. Double backslash is required if put the file path in "" on windows. I will test if it is ok if put in '' and one backslash.

3. It seems that the problem maybe related to windows OS as suggested by nerfherder. But I have no clue on it now.

I would pin down the problem to the file format now. It seems that the text file can be read out from outside cgi-bin. I will b back soon if I got it solved.

Thanks.

  • Comment on Re^2: Why can I not acess files outside cgi-bin directory?

Replies are listed 'Best First'.
Re^3: Why can I not acess files outside cgi-bin directory?
by perlfeng (Initiate) on Mar 25, 2005 at 17:08 UTC
    Hi, All,

    I pinned down the problem to the data file itself because I can download other files outside of cgi-bin to the client. I suspected the data file was somehow damaged when I got it. But I still can open in a text editor. And strange enoght, I can open it in a local perl script!

    I also tested that it is not because the data file is too large as nobull suggested. Thanks for gam3 for reminding me that to use file path in '' with one backslash. It is much easy to read and comfortable.

    Thank you all again for giving advices on this question. It is helpful. Really appreciate it!