I have Perl scripts for a website in a /cgi-bin folder, but when they run under IIS, they run as if they are in the top-level web folder.
For example, if I write a script to list the file contents of "." I get a list of the files in the folder above the /cgi-bin folder, rather than the /cgi-bin folder itself.
Or if I try to read the contents of file "test.txt" it doesn't work if the file is in /cgi-bin, but it does work if the file is in the home directory. Any ideas?
Details: ActivePerl 5.6.1 on Windows 2000.
C.
For example, if I write a script to list the file contents of "." I get a list of the files in the folder above the /cgi-bin folder, rather than the /cgi-bin folder itself.
Or if I try to read the contents of file "test.txt" it doesn't work if the file is in /cgi-bin, but it does work if the file is in the home directory. Any ideas?
Details: ActivePerl 5.6.1 on Windows 2000.
C.