Re: How to get a file listing
"Michael A. Capone" <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
Depending on your server setup, you may or may not be able to read \mydir2\. Whether on windows or a unix variant, apache is configured to run as "some user" (often, "nobody" on unix); and that user needs to be given at least read access to the \mydir2\ directory in order for this to work. Alan young's snippet he gave you: opendir my $DH, '\mydir2\' or die "Unable to open mydir2: $!"; should quickly tell you if you don't have read permission on \mydir2. ceauke wrote: > Wow, thanks. It's working. I have a problem with the dir structure: > Perls seems to search for mydir in \cgi-bin\ and not where I defined mydir > in the apache conf file. > > So my structure is like this: > \cgi-bin\myprog.cgi <---- my program > \cgi-bin\mydir1\ <----- this one can be seen by my program > \mydir2\ <----- how do I show this content? >