Reply to Re: Serialize string contains line feed?

Your name:

Reply:


Posted by howachen on 09/24/06 15:52

hi,

pls ignore the above example,

use the following one:

$temp = array( "this is a \ntest\";1", "sdsdssd") ;

print_r ( ( serialize($temp) ); // error here

how to make the code `safe` for any input?

thanks



Oli Filth wrote:
> howachen@gmail.com said the following on 22/09/2006 19:27:
> > Consider the following program, how to make it work properly when a
> > string contains line-feed?
> >
> > <?php
> >
> > $temp = "this is a \ntest";
> >
> > print serialize($temp);
> >
> > ?>
>
> What do you mean by "work properly"?
>
> --
> Oli

[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

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