Re: PATH_INFO in Windows/IIS

From: Date: Tue, 09 Jan 2001 10:47:48 +0000
Subject: Re: PATH_INFO in Windows/IIS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33581@lists.php.net to get a copy of this message
To: php-general@lists.php.net From: "Tom Harris" <stry_cat@yahoo.com> 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 -- --------------------------------------------------------------------

« previous php.general (#33581) next »