Accessing files with CGI

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Funkydory
-


Joined: 14 May 2002
Posts: 1

PostPosted: Tue May 14, 2002 9:45 am    Post subject: Accessing files with CGI Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue May 14, 2002 10:44 pm    Post subject: Re: Accessing files with CGI Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group