Visa ett inlägg
Oläst 2008-04-25, 15:32 #2
wooper wooper är inte uppkopplad
Medlem
 
Reg.datum: Mar 2008
Inlägg: 128
wooper wooper är inte uppkopplad
Medlem
 
Reg.datum: Mar 2008
Inlägg: 128
Hittade detta på php.net vilket kanske hjälper:

Citat:
The *only* way to make Request_URI work as a 100% Apache-Compliant server variable on IIS/Windows is to use an Isapi Filter - as documented at http://neosmart.net/blog/archives/291 . The various steps mentioned below *completely* fail when a rewrite engine is employed, since IIS will *never* return a non-existent path (i.e. the actual pretty-URI used) via its server variables.

This also applies to accessing index.php via a folder.
For instance, calls made to /folder/ will appear as /folder/index.php and not /folder/.

The fix is to use the ISAPI filter provided at http://neosmart.net/blog/archives/291

You don't have to modify any of the actual scripts once this filter is in place - it automatically intercepts calls to REQUEST_URI and replaces them with the actual user-entered path.
Länk: http://se2.php.net/reserved.variables
wooper är inte uppkopplad   Svara med citatSvara med citat