IIS PWD Environment variable problem

G

Guest

Hi

I use a cgi-bin counter script written in Perl to provide graphical counters
on my site. Part of this relies on writing to a private directory not
accesible on the web server. The script was located at
http://www.website.com/cgi-bin/counter.pl and it used to simply have the path
to write in as "../private/xxx" under IIS on Windows 2000 advanced server
this used to result in going down one directory from the webroot as the PWD
environment variable was set to the webroot (not including the cgi-bin path
segment). Now under Windows XP Proffesional IIS is setting the PWD
environemtn variable to be the path including the cgi-bin directory. I am
using Active Perl on both machines.

Does anyone know if this is a bug in the latest IIS, or where if any they
document this change in behaviour of IIS.

Thanks

Tony
 
C

Carey Frisch [MVP]

Please visit the IIS experts in the IIS newsgroup:
news://msnews.microsoft.com/microsoft.public.inetserver.iis

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User
Microsoft Newsgroups

Be Smart! Protect Your PC!
http://www.microsoft.com/athome/security/protect/default.mspx

------------------------------------------------------------------------------

:

| Hi
|
| I use a cgi-bin counter script written in Perl to provide graphical counters
| on my site. Part of this relies on writing to a private directory not
| accesible on the web server. The script was located at
| http://www.website.com/cgi-bin/counter.pl and it used to simply have the path
| to write in as "../private/xxx" under IIS on Windows 2000 advanced server
| this used to result in going down one directory from the webroot as the PWD
| environment variable was set to the webroot (not including the cgi-bin path
| segment). Now under Windows XP Proffesional IIS is setting the PWD
| environemtn variable to be the path including the cgi-bin directory. I am
| using Active Perl on both machines.
|
| Does anyone know if this is a bug in the latest IIS, or where if any they
| document this change in behaviour of IIS.
|
| Thanks
|
| Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top