note 62736 added to function.http-build-query
| From: | ColinGuthrie at osu1 dot php dot net | Date: | Wed, 08 Mar 2006 14:25:34 +0000 |
| Subject: | note 62736 added to function.http-build-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105051@lists.php.net to get a copy of this message | ||
@ xangelusx
You said that "It is actually illegal to set arg_separator.output to & ("and amp
;") as every character is considered a seperator according to the documentation."
I don't think this is correct. arg_separator.input maybe, but not the output. How can PHP
encode my URLs (that is what this setting is used for, e.g. on URL rewriting etc.) with more than
one separator? It doesn't make sence for that variable.
I have personally used & as a separate for output for years in order to create valid XHTML
output via PHP.
I long ago wrote a function to do this for me, but depending on where I use the output, I sometimes
want & and sometimes just a plain old & (think putting the value in a href=""
versus using it in a Location: header). Unfortunatly, I can see no way to deprecate my function just
yet, as this built in function is lacking that distinction (an optional argument would be perfect
IMO)
----
Server IP: 84.18.202.180
Probable Submitter: 84.9.255.116
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.http-build-query.php
Edit -- http://master.php.net/note/edit/62736
Del: integrated -- http://master.php.net/note/delete/62736/integrated
Del: useless -- http://master.php.net/note/delete/62736/useless
Del: bad code -- http://master.php.net/note/delete/62736/bad+code
Del: spam -- http://master.php.net/note/delete/62736/spam
Del: non-english -- http://master.php.net/note/delete/62736/non-english
Del: in docs -- http://master.php.net/note/delete/62736/in+docs
Del: other reasons-- http://master.php.net/note/delete/62736
Reject -- http://master.php.net/note/reject/62736
Search -- http://master.php.net/manage/user-notes.php