note 97697 rejected from function.http-build-query by danbrown

From: Date: Mon, 03 May 2010 23:40:07 +0000
Subject: note 97697 rejected from function.http-build-query by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168896@lists.php.net to get a copy of this message
Note Submitter: mav90 at altern dot org ---- 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"

« previous php.notes (#168896) next »