View previous topic :: View next topic |
Author |
Message |
Funkydory -
Joined: 14 May 2002 Posts: 1
|
Posted: Tue May 14, 2002 9:45 am Post subject: Accessing files with CGI |
|
|
I'm having trouble getting a cgi script to read or write to files that arent in the root documents directory. For example:
open(INFO, "<info.txt") || print "Cannot open file<br>\n";
works. However
open(INFO, "</storage/info.txt") || print "Cannot open file<br>\n";
does not work. Is this something to do with the interpreter (I'm using ActivePerl on Win98 SE) or the webserver and how would i resolve this?
Thanks |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue May 14, 2002 10:44 pm Post subject: Re: Accessing files with CGI |
|
|
Funkydory wrote: | I'm having trouble getting a cgi script to read or write to files that arent in the root documents directory. For example:
open(INFO, "<info.txt") || print "Cannot open file<br>\n";
works. However
open(INFO, "</storage/info.txt") || print "Cannot open file<br>\n";
does not work. Is this something to do with the interpreter (I'm using ActivePerl on Win98 SE) or the webserver and how would i resolve this?
Thanks |
This probkem isn't related to Abyss Web Server.
Obviously your are using a wrong file name /storage/info.txt . Filenames doesn't begin with a slash under Windows.
So check the filename and retry. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|