Reply to Re: Newline doesn't work always....??

Your name:

Reply:


Posted by Pedro Graca on 10/10/26 11:38

Ralph Höglund wrote:
> The \n I write out to an open file does not work
> the second time:
>
> $xmlstr = "<?xml version=\"1.0\"\x3F>\n";
> $songstr = "<songs>\n";
>
> fwrite($handle, "$xmlstr"); //after this I got a new line
> fwrite($handle, "$songstr"); //but not after this
<snip>

in what mode did you fopen the file?

/* open $filename in text mode */
$handle = fopen($filename, "wt");

--
If you're posting through Google read <http://cfaj.freeshell.org/google>

[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

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