FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Accessing IIS variables from PHP after URL Rewrite
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Accessing IIS variables from PHP after URL Rewrite [message #177153 is a reply to message #177116] Fri, 24 February 2012 12:43 Go to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 23/02/2012 0:26, The Natural Philosopher escribió/wrote:
> Peter Heald wrote:
>> On Feb 17, 3:32 pm, Peter Heald <petehe...@gmail.com> wrote:
>>> Hi all,
>>>
>>> I have a working URL Rewrite rule (that simply steps 'up' one dir on
>>> the site) and as part of the rule, I set a server variable. However I
>>> cannot access this from PHP. I always get the old value of the
>>> variable; it's as if the rule never set the variable (or perhaps PHP
>>> is picking it up from a cached $_SERVER array containing the old
>>> variables?). I've tried existing variables (such as REQUEST_URI) and
>>> new variables. Either way, I add it to the list of allowed variables
>>> in IIS. I've tried the rule at site level and dir level, nothing seems
>>> to help. As I say, the rule works fine, there are no errors, just the
>>> variable value is not set. It's driving me nuts - any help would be
>>> much appreciated!
>>>
>>> Pete
>>
>> Problem is solved. In fact, many of the problems I've been
>> experiencing seem to suddenly be ok after applying a heap of Windows
>> Update patches to the server...
>
> why ever would one run php on a windows server?

I agree with that. Other people's habit of not complying with all your
personal preferences is absolutely annoying :)



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: way to turn off strict option? Use of undefined constant
Next Topic: FastCGI & PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 14:23:31 GMT 2024

Total time taken to generate the page: 0.04192 seconds