About HyperNews
 Next-in-Thread Next-in-Thread
 Next Message Next Message

Hoping to avoid further problems . . . 

Forum: HyperNews Installation
Re: HyperNews' setup-form wants to tack on a unix path to a URL. (Steven Peterson)
Re: SCRIPT_NAME inconsistency (Daniel M LaLiberte)
Date: 1996, Feb 01
From: Steven Peterson

Daniel:

Thanks for your response. I am not sure the brand of web server I am using. It is through www.best.com -- they write it is "loosely based" on the NCSA server.

I've corrected the code as you suggested. The only other significant occurrence of $ENV{'SCRIPT_NAME'} was in the setup.cgi script. The code reads as follows:

  # Compute hnbinURL from current directory.
  \$hnbinURL = "\$http\$ENV{SCRIPT_NAME}";
  \$hnbinURL =~ s/[^\\\/]+\$//;
  \$hnbinURL =~ s/\\\/\$//;
  \$hnbinURL =~ s/\\\/SECURED\$//;
  $hnbinFix

Unfortunately, I am not that familiar with Perl to decipher this code and what it is intended to do. My fear is that the the phrase "$ENV{SCRIPT_NAME}" is stored as part of the \$hnbinURL variable then \$hnbinURL is EVALed at various times throughout the program, coming up with different, faulty values everywhere.

Hopefully, this is not the case. Could I simply replace this block with a hard coded assignment?

(eg \$hnbinURL = "http://www.frontier-news.com/HyperNews/.scripts)

Thanks for any help,

Steven Peterson

 Next-in-Thread Next-in-Thread
 Next Message Next Message
Inline:
 1 1
 All All
Outline:
 1 1
 2 2
 All All

1 Feedback: No end of problems, from my perspective anyway by liberte@hypernews.org, 1996, Feb 01
(_ More: Oops - my mistake by liberte@hypernews.org, 1996, Feb 01
(_ hndocsURL still used by jay mortensen, 1996, Feb 08

This forum is closed.

 Members Members
 Subscribe Subscribe
 Admin Mode Admin Mode
 Show Frames Show Frames
 Help Help


|| About || Instructions || Test || Guestbook || Future || || Source || Installation || Consortium ||

Earn money with Scour!
Google
 
Web www.HyperNews.org
Earn money with Scour!