|
Posted by Chung Leong on 04/30/07 11:57
On Apr 30, 1:20 am, dawnerd <dawn...@gmail.com> wrote:
> Hello everyone.
>
> I have a question, or problem if you will, that I'm sure someone knows
> the answer to. I have a database that stores information on a given
> user. The information is stored in a serialized array. This works
> flawlessly when using only single line text. When I tried to store
> multiline text, the problem arose.
>
> When the serialized data is deserialized, the array breaks. Any
> suggestions?
Compare the length of the serialized string before and after. I bet
you it's a CRLF vs CR issue. The lengths of strings are stored in the
serialization data. If it loses or gains a character upon retrieval,
then unserial() won't work.
[Back to original message]
|