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 document root from the > environment variables: > print "Document root is: ", $ENV{DOCUMENT_ROOT}; 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. :) and, as always, if you are going to need to work with this sysadmin a lot, a case of his favorite beer goes a long way. -- brian d foy <[EMAIL PROTECTED]> - Perl services for hire CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]