in reply to Opening files on IIS

The Leading slash in
$dir = "/cgi-bin/dls.txt";
causes it to go to the Root of the disk.

Try it without the leading slash, to allow relative paths:

$dir = "cgi-bin/dls.txt";

Replies are listed 'Best First'.
Re: Re: Opening files on IIS
by ucanflyit (Initiate) on Mar 09, 2004 at 20:51 UTC
    Thanks for the help!