note 104584 deleted from function.fsockopen by danbrown

From: Date: Fri, 24 Jun 2011 15:26:19 +0000
Subject: note 104584 deleted from function.fsockopen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180917@lists.php.net to get a copy of this message
Note Submitter: Wrinkled Cheese ---- foreach ($getdata as $k => $v) $getdata_str .= urlencode($k) .'='. urlencode($v); should be changed to foreach ($getdata as $k => $v) $getdata_str .= urlencode($k) .'='. urlencode($v) . '&'; $getdata_str = substr($getdata_str, 0, strrpos($getdata_str, '&')); I spent an hour figuring out why AJAX worked but fsockopen() did not using this code.

« previous php.notes (#180917) next »