[thelist] basedir location

Jeremy Ashcraft ashcraft at 13monkeys.com
Mon Nov 20 09:47:10 CST 2000


You could use the PWD environment variable, which stores the full path of
the current working directory, so

$path = $ENV{PWD} ."/" . $filename;

would give you the full path of the file.  HTH

jeremy

----- Original Message -----
From: "J. Ross Dishner" <ross at designcc.com>
To: <thelist at lists.evolt.org>
Sent: Monday, November 20, 2000 3:47 AM
Subject: [thelist] basedir location


> I've got a script that requires my to put the absolute path to my
> basedir for the cgi-bin in the cgi script inside the bin. Having
> never used a script that required this I'm at a loss for answers.
> It's unlikely I'll be speaking to my servers administrator at this
> hour and I don't have telnet since it is a security risk according to
> my host. I do, however, have a very fine ftp client but haven't been
> able to guess or find said path. Any answers as to how to sleuth it
> out?
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>





More information about the thelist mailing list