note 91371 added to function.serialize
| From: | NWdev at osu1 dot php dot net | Date: | Tue, 09 Jun 2009 02:27:28 +0000 |
| Subject: | note 91371 added to function.serialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156579@lists.php.net to get a copy of this message | ||
If you're serializing a small array of values and sending them from page to page for
display/navigation purposes (versus storing them as session values) via $_GET, save yourself some
time and ensure your php.ini magic_quotes_gpc values are set the same on your hosting and localhost
severs.
In my case I had magic_quotes_gpc OFF locally, and it took a while to see why the values
weren't unserializing properly (actually at all -- unserialize produced FALSE) on the action
page (form action page) of the hosted version. A quick look at phpinfo() showed a difference --
Thanks to others mentioning use of magic_quotes when saving to mysql triggered a thot that this
mismatch might cause the problem.
----
Server IP: 208.69.120.35
Probable Submitter: 76.22.70.234
----
Manual Page -- http://www.php.net/manual/en/function.serialize.php
Edit -- https://master.php.net/note/edit/91371
Del: integrated -- https://master.php.net/note/delete/91371/integrated
Del: useless -- https://master.php.net/note/delete/91371/useless
Del: bad code -- https://master.php.net/note/delete/91371/bad+code
Del: spam -- https://master.php.net/note/delete/91371/spam
Del: non-english -- https://master.php.net/note/delete/91371/non-english
Del: in docs -- https://master.php.net/note/delete/91371/in+docs
Del: other reasons-- https://master.php.net/note/delete/91371
Reject -- https://master.php.net/note/reject/91371
Search -- https://master.php.net/manage/user-notes.php