Re: Path of root directory on production server

2001-10-29 Thread RaFaL Pocztarski
_brian_d_foy wrote: > DOCUMENT_ROOT is not necessarily where CGI scripts go. instead > of everyone suggesting that the poster guess by running simple > minded programs, suggest that the poster ask the system > administrator, or read the server configuration file. :) Well... Good point. We were

Re: Path of root directory on production server

2001-10-23 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Prashant Kukde wrote: > > I want to load my perl/ CGI script on production server. But, I dont know > > the root path... > > Is there anyway to get it using perl script or CGI script ?? > if you're running apache, you can get the doc

Re: Path of root directory on production server

2001-10-23 Thread fliptop
Prashant Kukde wrote: > > Hi , > I want to load my perl/ CGI script on production server. But, I dont know > the root path... > Is there anyway to get it using perl script or CGI script ?? if you're running apache, you can get the document root from the environment variables: print "Document

Re: Path of root directory on production server

2001-10-23 Thread RoadRaat
In a message dated Tue, 23 Oct 2001 1:16:49 AM Eastern Daylight Time, tom poe <[EMAIL PROTECTED]> writes: > $pwd = `pwd`; > print "The Password is: $pwd\n"; > Huh? I don't get it. pwd doesn't mean "password". It's "present working directory". And how can you not know the path you need o

Re: Path of root directory on production server

2001-10-23 Thread Stephan Tinnemeyer
Minor bug: tom poe wrote: > > $pwd = `pwd`; > print "The Password is: $pwd\n"; > The Unix command "pwd" has nothing to do with passwords. It stands for "Path to Working Directory". Cheers Stephan -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe, e-mail

Re: Path of root directory on production server

2001-10-23 Thread RaFaL Pocztarski
tom poe wrote: > #!/usr/bin/perl -w > print "Content-type: text/html\n\n"; > print "Hello World"; > $pwd = `pwd`; > print "The Password is: $pwd\n"; > > The single quotes around pwd on the right side of the = sign, are actually > back-tics. This won't work if the server doesn't chdir to director

Re: Path of root directory on production server

2001-10-22 Thread tom poe
On Monday 22 October 2001 16:12, Prashant Kukde wrote: > Hi , > I want to load my perl/ CGI script on production server. But, I dont know > the root path... > Is there anyway to get it using perl script or CGI script ?? > > Regards, > Prashant Hi: This from extropia stuff: #!/usr/bin/perl -w

Path of root directory on production server

2001-10-22 Thread Prashant Kukde
Hi , I want to load my perl/ CGI script on production server. But, I dont know the root path... Is there anyway to get it using perl script or CGI script ?? Regards, Prashant Live Life without fear, confront all obstacles and evince that you can overcome them. -- To unsubscribe, e-mail: [E