• You are not logged in. | Login

Post a reply

November 17, 2006 3:41 am

shadow122
Member
Ranks

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  sad

what should i do?
help plz


 

 

November 23, 2006 1:10 pm

senjor_itc
Member
Ranks

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!


 

 
  • Actions
  • Top
ITCrimea. Ukraine Web Development Company. Professional Developers and Web Designers Team
Custom Web Designs, Internet Applications, E-Commerce Websites, Interactive Sites, Database-Driven Sites and Services