Reply to Re: Problem When Serializing Array With Multiline Text

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация