note 77290 added to function.serialize

From: Date: Thu, 23 Aug 2007 07:08:09 +0000
Subject: note 77290 added to function.serialize
Groups: php.notes php.notes 
Request: Send a blank email to php-notes+get-129722@lists.php.net to get a copy of this message
In reponse to nothanks' base64 suggestion - I would suggest something like mysql_escape_string() instead. The row fetched from the database should not need any unescaping; and this method is much faster and creates shorter strings than base64 encoding. Anyone unfamiliar with mysql_escape_string() or addslashes() should learn them right away - they are invaluable for keeping your server secure. ---- Server IP: 203.220.0.234 Probable Submitter: 220.245.178.134 (proxied: 60.242.27.57) ---- Manual Page -- http://www.php.net/manual/en/function.serialize.php Edit -- https://master.php.net/note/edit/77290 Del: integrated -- https://master.php.net/note/delete/77290/integrated Del: useless -- https://master.php.net/note/delete/77290/useless Del: bad code -- https://master.php.net/note/delete/77290/bad+code Del: spam -- https://master.php.net/note/delete/77290/spam Del: non-english -- https://master.php.net/note/delete/77290/non-english Del: in docs -- https://master.php.net/note/delete/77290/in+docs Del: other reasons-- https://master.php.net/note/delete/77290 Reject -- https://master.php.net/note/reject/77290 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129722) next »