note 43449 added to function.base64-encode
| From: | juha at kuhazor dot idlegames dot com | Date: | Tue, 22 Jun 2004 00:29:08 +0000 |
| Subject: | note 43449 added to function.base64-encode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71468@lists.php.net to get a copy of this message | ||
If you use base64encoded strings as cookie names, make sure you remove '=' characters. At
least Internet Explorer refuses cookie names containing '=' characters or urlencoded
cookie names containing %xx character replacements. Use the function below to turn base64 encoded
strings to bare alphabets (get rid of / and + characters as well)
function base64clean($base64string)
{
$base64string=str_replace('=','',$base64string);
$base64string=str_replace('+','',$base64string);
$base64string=str_replace('/','',$base64string);
return $base64string;
}
----
Manual Page -- http://www.php.net/manual/en/function.base64-encode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43449
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43449&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43449&report=yes
Search -- http://master.php.net/manage/user-notes.php