note 77290 deleted from function.serialize by nlopess
| From: | nlopess@php.net | Date: | Sat, 01 Sep 2007 16:20:19 +0000 |
| Subject: | note 77290 deleted from function.serialize by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130033@lists.php.net to get a copy of this message | ||
Note Submitter: Aleks
----
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.