note 61134 added to function.http-build-query

From: Date: Thu, 26 Jan 2006 14:53:22 +0000
Subject: note 61134 added to function.http-build-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-102487@lists.php.net to get a copy of this message
@ arjini: It is actually illegal to set arg_separator.output to &amp; ("and amp ;") as every character is considered a seperator according to the documentation. Hosts should only be using the single "&" (andpersand) character. @ vlad: Good call checking the servers arg_separator.output setting, but note that it can contain several characters (see the default setting in php.ini). Instead, try this: <?php //Discover the servers preferred parameter delimiters. If empty, assume "&" $Delims = ((ini_get("arg_separator.input") == "") ? "&" : ini_get("arg_separator.input")); if (strlen($Delims) > 1) { $Delims = preg_split('//', $Delims, -1, PREG_SPLIT_NO_EMPTY); } else { $Delims = array($Delims); } $separator = $Delims[0]; ?> ---- Server IP: 64.71.164.2 Probable Submitter: 204.17.80.4 ---- Manual Page -- http://www.php.net/manual/en/function.http-build-query.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61134 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61134&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61134&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61134&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61134&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61134&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61134&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61134&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61134&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102487) next »