Hi,
This is a more concise version of a question that I posted on the
new members forum .
I ran the following lt_test.cgi from the cgi-bin of the Windows 2000 Professional Default Website.
[code][/code]In the require statement above, I needed to use an absolute path for require to be able to "get" vars_config.cgi
Before the require statement used above I had hoped to be able to run the following:-
print "Content-type: text/htmlnn";
use Cwd;
$dir = getcwd;
print "$dir";
What $dir returned was a physical path to which the Default Website was mapped to. ("C:/Sites_04july2002_1/Sitename/community/boards")
I had hoped that $dir would return the total physical path all the way path to the cgi-bin (since I was running lt_test.cgi from the cgi-bin itself).
If that was possible I could do
require "$dir/vars_config.cgi"
Is there a way to do this?
Would appreciate any help:)