UBB.Dev
Hi,
I have just upgraded ubb.classic6.2.1 to ubb.classicversion6.3.0.1 running on Win2K Server.
I have been asked to reinstall Latest Threads on the upgraded ubb.

I work together with two ASP webmasters who have the following code embedded onto their web pages.
script src="http://xxx.yyy.com/cgi-bin/lt.cgi?f=10">');

What I did after upgrading was to reduce lt.cgi to just the following :-
Code
[/code]I did the above so that the web pages would display nothing instead of a javascript error.

I intend to install the latest version of Latest Threads (version2.1) on the upgraded ubb.
What I need the lt.cgi in this case to do is:-
Code
</pre></div></div>I am stuck at the first few steps.<br>I ran the following lt_test.cgi from the cgi-bin of the Windows 2000 Professional Default Website.<br>[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 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.

I had hoped that $dir would return the total physical path all the way path to the cgi-bin.
So that I could do

require "$dir/vars_config.cgi"

Is there a way to do this?

Would appreciate any help:)
I replied to your other topic in the Perl Programming forum. wink
Please don't post in multiple forums. Since the other topic has replies I'll close this one.
© UBB.Developers