[PHP] Writing a file with break lines

2001-04-30 Thread Augusto Cesar Castoldi

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.

regards,

Augusto Cesar Castoldi


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Writing a file with break lines

2001-04-30 Thread Steve Werby

Augusto Cesar Castoldi [EMAIL PROTECTED] 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/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]