_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
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
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
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
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
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
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