Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: activestate opens files from commandline but not when executed as a cgi

by dree (Monsignor)
on Jun 10, 2002 at 19:20 UTC ( #173272=note: print w/ replies, xml ) Need Help??


in reply to activestate opens files from commandline but not when executed as a cgi

Are you using relative paths to read the file?

IIS doesn't like relative paths... try absolute ones.
For example, try:

($relative_path=$ENV{SCRIPT_NAME}) =~ s|[^/]+$||; $absolute_path=$ENV{PATH_TRANSLATED}.$relative_path; $filename=$absolute_path.'file.txt';


Comment on Re: activestate opens files from commandline but not when executed as a cgi
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://173272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-09-16 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (19 votes), past polls