note 27762 deleted from function.unserialize by sniper
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 03:21:55 +0000 |
| Subject: | note 27762 deleted from function.unserialize by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58509@lists.php.net to get a copy of this message | ||
Note Submitter: evanATcoeusHYPHENgroupDOTcom
----
I've found the base64_encode and base64_decode functions extremely useful for this, especially
when trying to send serialize()'d variables through HTTP requests.
basically, just echo base64_encode(serialize($foo)) in the link/form field/whatever, then
$foo=unserialize(base64_decode($_POST['foo'])), and you'll be happy.