Paths within cgi scripts

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






PostPosted: Fri May 24, 2002 2:36 pm    Post subject: Paths within cgi scripts Reply with quote

I am using the abyss web server to develop perl programs on a local pc running win xp. no problems with the configuration. But when using paths to files that work on my unix hosting server abyss fails to locate the path.
for example "/cgi-bin/store/admin/data/init.ini". The perl compiler is putting out an error saying that the file does not exist. But if you copy and paste the path given in the error it will display it fine. And remember on a unix box it finds the file just fine.

Any ideas?

Great server, keep it coming.

Jon
Back to top
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri May 24, 2002 11:13 pm    Post subject: Re: Paths within cgi scripts Reply with quote

Anonymous wrote:
I am using the abyss web server to develop perl programs on a local pc running win xp. no problems with the configuration. But when using paths to files that work on my unix hosting server abyss fails to locate the path.
for example "/cgi-bin/store/admin/data/init.ini". The perl compiler is putting out an error saying that the file does not exist. But if you copy and paste the path given in the error it will display it fine. And remember on a unix box it finds the file just fine.

Any ideas?

Great server, keep it coming.

Jon

When a CGI script is run, the default directory is the one where it is located. So you'll need to code the paths with respect to your current configuration (using absolute paths like c:\somepath\cgi-bin\.... ).
_________________
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