Re: [PHP] cgi.fix_pathinfo and iis 5
Mariano Guadagnini 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 set AllowPathInfoForScriptMappings variable in iis, but it didn't work either. Finally, I ended up with a solution i found somewhere else, enabling cgi.fix_pathinfo in php.ini . The thing is, that when i restart the server, it seems that php doesn't recognize such variable, as it doesn't apper on phpinfo or ini_get() neither. That looks weird, because in documentation is clearly stated that this variable is available since PHP 4.3.0 . What can I do to have that setting enabled? seeing as it has the letters 'CGI' in the ini setting name would make me think that it's a setting that is only relevant to the cgi version of php - and I would wager that your probably running the ISS php module instead - but you don't say which so I'm guessing. for the rest refer to John Wells' post. Thanks in advance, Mariano Guadagnini. Any ideas? 1 springs to mind: don't double post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cgi.fix_pathinfo and iis 5
On 4/28/06, Mariano Guadagnini <[EMAIL PROTECTED]> 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 set So... 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cgi.fix_pathinfo and iis 5
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 set AllowPathInfoForScriptMappings variable in iis, but it didn't work either. Finally, I ended up with a solution i found somewhere else, enabling cgi.fix_pathinfo in php.ini . The thing is, that when i restart the server, it seems that php doesn't recognize such variable, as it doesn't apper on phpinfo or ini_get() neither. That looks weird, because in documentation is clearly stated that this variable is available since PHP 4.3.0 . What can I do to have that setting enabled? Thanks in advance, Mariano Guadagnini. Any ideas? -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/326 - Release Date: 27/04/2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cgi.fix_pathinfo and iis 5
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 set AllowPathInfoForScriptMappings variable in iis, but it didn't work either. Finally, I ended up with a solution i found somewhere else, enabling cgi.fix_pathinfo in php.ini . The thing is, that when i restart the server, it seems that php doesn't recognize such variable, as it doesn't apper on phpinfo or ini_get() neither. That looks weird, because in documentation is clearly stated that this variable is available since PHP 4.3.0 . What can I do to have that setting enabled? Thanks in advance, Mariano Guadagnini. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/326 - Release Date: 27/04/2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php