
- You are not logged in. | Login
November 17, 2006 3:41 am
- shadow122
- Member


help me plz with fwrite
hi there
for exp when i code :
fwrite( $fp, "name : ".$aVar."\n" );
fwrite( $fp, "age : ".$anotherVar."\n" );
the "\n" doesnt work and all the file contents are on the same line
what should i do?
help plz
November 23, 2006 1:10 pm
- senjor_itc
- Member


Re: help me plz with fwrite
Hi,
if you write HTML file, use <br /> instead of \n.
If you write another type of file (text) try to use \r\n.
Hope, it will help!


