To: [EMAIL PROTECTED] From: "Tom Harris" <[EMAIL PROTECTED]> Date sent: Tue, 9 Jan 2001 09:34:32 -0500 Subject: [PHP] PATH_INFO in Windows/IIS > I've been using $PATH_INFO to get variables passed without using a "?" in the > URL (using Linux/Apache) > I copied our site over to a Win box with IIS and now when I goto to > > http://localhost/testscript.php/43/2000 > > I'm told: > > Warning: Failed opening 'C:\Inetpub\wwwroot\testscript.php\43\2000\' for > inclusion (include_path='') in Unknown on line 0 > > Did I install something wrong? Does this not work on Windows? Someone > please tell me what to do. I think the warning indicates it can't find the file. Looking at it it you are trying to open a file: http://localhost/testscript.php/43/2000 and php thinks you ean a directory: C:\Inetpub\wwwroot\testscript.php\43\2000\' Note that the slashes are all standard directory-dividing slashes now, and an end slash has been added, meaning it is looking for a directory. So apparently windows does not understand you mean to open file C:\Inetpub\wwwroot\testscript.php with extension '\43\2000\' So if it does not hurt (security, ugly URL) i suggest just make it a question mark with a GET variable: C:\Inetpub\wwwroot\testscript.php?x=43\2000\ and apply the same searches you are used to. If that really hurts I'm afraid you have to explain the server what you mean. I have no suggestions.... good luck, Chris -------------------------------------------------------------------- -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- -------------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]