note 97698 added to function.http-build-query

From: Date: Mon, 03 May 2010 23:40:35 +0000
Subject: note 97698 added to function.http-build-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-168897@lists.php.net to get a copy of this message
(please remove precedent submission with email) On some odd version such as Xampp Windows under PHP 5.1.1, the function is not working correctly. It takes in account only 2 arguments. So in some scripts, you have to change/adapt the script accordingly: For instance, I add this script: if (eregi("Win32", $_SERVER['SERVER_SIGNATURE'])) $ret = http_build_query($formdata,$prefix); else $ret = http_build_query($formdata, $prefix, $separator); Otherwise, it would throw a warning error: "Warning: http_build_query() expects at most 2 parameters, 3 given in" ---- Server IP: 69.147.83.197 Probable Submitter: 88.169.182.241 ---- Manual Page -- http://www.php.net/manual/en/function.http-build-query.php Edit -- https://master.php.net/note/edit/97698 Del: integrated -- https://master.php.net/note/delete/97698/integrated Del: useless -- https://master.php.net/note/delete/97698/useless Del: bad code -- https://master.php.net/note/delete/97698/bad+code Del: spam -- https://master.php.net/note/delete/97698/spam Del: non-english -- https://master.php.net/note/delete/97698/non-english Del: in docs -- https://master.php.net/note/delete/97698/in+docs Del: other reasons-- https://master.php.net/note/delete/97698 Reject -- https://master.php.net/note/reject/97698 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168897) next »