> -----Original Message----- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 7:29 AM > To: Ron Goral; Perl Beginners - CGI > Subject: Re: Locating the root directory to find files on a web site > > > Use the %ENV hash > T > > ----- Original Message ----- > From: "Ron Goral" <[EMAIL PROTECTED]> > To: "Perl Beginners - CGI" <[EMAIL PROTECTED]> > Sent: Wednesday, July 21, 2004 3:00 PM > Subject: Locating the root directory to find files on a web site > > > > Howdy - > > > > I have a module that needs to locate the root directory in > order to search > > for files or directories on a web site. The difficulty is that I cannot > be > > certain of a couple things - > > > > 1. I don't know where the script will be installed except that > it will be > > in the cgi-bin > > 2. I don't know where the file or directory to be located will be > relative > >
Thanks for the comeback Octavian. $ENV{DOCUMENT_ROOT} gives me the root directory for a non-SSL call or a SSL call where the site owns the certificate, but with a shared server certificate, it yields the root of the secure server. For example - /usr/wwws/htdocs A listing of the files on /usr/wwws/htdocs shows me the other sites using that certificate. The listing looks like: /usr/wwws/htdocs /usr/wwws/htdocs/domain1 /usr/wwws/htdocs/domain2 /usr/wwws/htdocs/domain3 /usr/wwws/htdocs/domain4 etc...... File::Find does not actually delve into the domain directories. Peace - Ron Goral -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>