Re: Writing a file with break lines

From: Date: Tue, 01 May 2001 01:32:33 +0000
Subject: Re: Writing a file with break lines
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50938@lists.php.net to get a copy of this message
"Augusto Cesar Castoldi" <castoldi@inf.ufsc.br> wrote: > How can I write a file like "list.txt", I get a lot of information from > mysql, and I have to put with line of mysql in this txt file. (rewrite). > > How can I do that? > > I tried to put "\n" but it didn't worked. "\n" works for me. Perhaps you should post some of your code. Be sure "\n" is within double quotes; if it's in single quotes it won't work. Here's a line of code from a script I wrote that works. fwrite( $fout, "Date: $h_date\n" ); -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#50938) next »