On Mon, 06 Dec 2004 14:13:29 +0100, Michael Fesser <ne*****@gmx.net> wrote:
.oO(Andy Hassall)
On 5 Dec 2004 07:25:00 -0800, bi******@yahoo.co.uk (mr_burns) wrote:
I am using $HTTP_SERVER_VARS['SCRIPT_FILENAME']
$_SERVER would be preferred, but it's the same info.
Same info, but not the same scope. $_SERVER is superglobal, the old
$HTTP_* arrays are not.
True.
but looping through $_GET may be useful if:
(a) you want to modify/add/remove some of the values, but keep the rest
(b) you want to change the separator, e.g. from & to ;
This can also be done with modifying 'arg_separator.input' if possible.
Well, having that set might be _why_ you'd want to rewrite URLs to use ';'
instead of '&' (which browsers tend to send), rather than _how_. I tend to have
arg_separator.input set to '&;', and write out URLs separated with ';' mostly
because it's easier than escaping & into & all over the place.
arg_separator.output handles anything where PHP constructs URLs, but I think
that's mostly just the form rewriting it does for cookie-less sessions.
--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool