Re: Arg seperators
| From: | Rasmus Lerdorf | Date: | Fri, 18 May 2001 15:58:15 +0000 |
| Subject: | Re: Arg seperators | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53440@lists.php.net to get a copy of this message | ||
> According to the w3c validation program;
>
> A URL for a CGI program that uses `&' as a separator, such as
> "http://host/prog?x=1&y=2". This is a common
> problem: the inventors of CGI
> didn't think things through very carefully when they decided to use the '&'
> character as a separator between CGI arguments, because '&' has special
> status in HTML. One way to get around this is for the author of the CGI
> program to use a different value between arguments, like ';' or '|', which
> would allow the link to be coded as <img
> src="http://site/cgi?opt1=val1;opt2=val2"> or
> whatever.
>
> I know that php 4.0.5 has a new ini directive for this, is there any way to
> change this on older versions of PHP?
That directive has been there for a long time.
-Rasmus