> $string ="foo=bar&food=apple";
> $contentlength=$string.size;
> $uuencodestring=uuencode($string);
uuencode ? are you looking at urlencode ?
use
$contentlength=strlen($string);
also remember according to the HTTP protocol, you have to show the length of
the encoded string, not the original; which in PHP will look like :
<?
$string ="foo=bar&food=apple";
$encodedstring=urlencode($string);
$contentlength=strlen($encodedstring);
?>
other methods may or may not work if they're not HTTP compliant.
cheers,
hrishi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]