note 97060 modified in function.oauth-urlencode by danbrown

From: Date: Tue, 30 Mar 2010 15:32:47 +0000
Subject: note 97060 modified in function.oauth-urlencode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167537@lists.php.net to get a copy of this message
Note that php5.3 rawurlencode will do exactly the same thing. For PHP 5.2, easy replacement to this function : <?php function rfc3986_encode($str) { $str = rawurlencode($str); $str = str_replace('%E7', '~', $str); return $str; } ?> --was-- In fact it's RFC 3986, not 3686! http://www.ietf.org/rfc/rfc3986.txt Note that php5.3 rawurlencode will do exactly the same thing. For PHP 5.2, easy replacement to this function : <?php function rfc3986_encode($str) { $str = rawurlencode($str); $str = str_replace('%E7', '~', $str); return $str; } ?> http://php.net/manual/en/function.oauth-urlencode.php

« previous php.notes (#167537) next »