$cookie = $_COOKIE['bookmarks']; if(unserialize($cookie) == true) { $bookmarks = unserialize($cookie); } else { $bookmarks = array(); }
Produces:
Notice: Undefined index: bookmarks in c:\Inetpub\wwwroot\palms\htdocs\bookmarks.php on line 5
Notice: unserialize() [function.unserialize]: Argument is not an string in c:\Inetpub\wwwroot\palms\htdocs\bookmarks.php on line 5
Any suggestions on how I can do this without throwing notices? I'm aware that I can turn notices off but I like them kept on to help me with debugging.
- Brian
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php