Re: cgi.fix_pathinfo and iis 5
| From: | John Wells | Date: | Fri, 28 Apr 2006 20:59:08 +0000 |
| Subject: | Re: cgi.fix_pathinfo and iis 5 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235042@lists.php.net to get a copy of this message | ||
On 4/28/06, Mariano Guadagnini <mariano@uvcms.com> wrote:
Mariano Guadagnini wrote: Hi people, I have the following issue: I´m using PHP 5 on IIS 5 and Windows XP Pro, and when trying to pass values through the path to my scripts, iis rejects them. After some googling, I found an advice to setSo... without some code examples or something a bit more substantial than "iis rejects them" it's difficult to help out. I have no experience with the cgi.fix_pathinfo, but I'm _guessing_ that you're trying to do something like this: http://www.mariano.com/script.php/var1/var2 And get var1 and var2 out of the path? If so, you've likely tried getting at them with: $_SERVER['PATH_INFO'] or even getenv('PATH_INFO'); ? And if so, what exactly does iis do? Run phpinfo() and see what environment variables your server is setting (VERY_HELPFUL). For example, on the 3rd party hosting server I use, PATH_INFO is empty, but an ORIG_PATH_INFO contains the value I need. As I said at the start, please give us some more information, and perhaps we can be a bit more helpful...and I can stop asking you more questions than you asked us. Cheers, John