note 97697 added to function.http-build-query

From: Date: Mon, 03 May 2010 23:37:05 +0000
Subject: note 97697 added to function.http-build-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-168895@lists.php.net to get a copy of this message
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/97697 Del: integrated -- https://master.php.net/note/delete/97697/integrated Del: useless -- https://master.php.net/note/delete/97697/useless Del: bad code -- https://master.php.net/note/delete/97697/bad+code Del: spam -- https://master.php.net/note/delete/97697/spam Del: non-english -- https://master.php.net/note/delete/97697/non-english Del: in docs -- https://master.php.net/note/delete/97697/in+docs Del: other reasons-- https://master.php.net/note/delete/97697 Reject -- https://master.php.net/note/reject/97697 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168895) next »