|
Posted by Curtis on 12/10/06 10:54
Use $_SERVER['PHP_SELF'] or $_SERVER['SCRIPT_NAME']. Neither of these
include the query string.
On Dec 7, 12:57 am, "John Dunlop" <usenet+2...@john.dunlop.name> wrote:
> Jeremy:
>
> > Example: for URL "http://www.foo.bar/path/script?thing=value"
> > $_SERVER["REQUEST_URI"] should be "/path/script"
>
> > But it's now "/path/script?thing=value".
>
> > Is this supposed to happen? An "abs_path" Request-URI can't contain a query part, strictly
> speaking, because the ABNF of RFC2616 doesn't allow it (RFC2616: 5.1.2;
> RFC3986: 3.5). The only way to pass data in the query part is to send
> an absolute URI.
>
> However, the errata mends this, so you can expect future revisions
> to allow query parts in relative Request-URIs. I shouldn't worry too
> much about it.
>
> http://skrb.org/ietf/http_errata.html#uriquery
>
> --
> Jock
[Back to original message]
|