note 57659 added to function.http-build-query

From: Date: Mon, 10 Oct 2005 15:35:52 +0000
Subject: note 57659 added to function.http-build-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-96787@lists.php.net to get a copy of this message
Note that some hosts have the ini setting "arg_separator.output" set to & ("and amp ;" in case this form encoded that) and some have it set to just a plain old ampersand. When running unit tests on a number of different hosts I kept getting inconsistent results and in some cases double encoded html entitiy errors inside my url class. I changed $queryString = http_build_query($args); to $queryString = html_entity_decode(http_build_query($args)); (one could change the ini setting instead but some hosts don't allow that, so this is the only catch I all solution I found). ---- Manual Page -- http://www.php.net/manual/en/function.http-build-query.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57659 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57659&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57659&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57659&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57659&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57659&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57659&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57659&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57659&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96787) next »