Re: Writing newlines in files

From: Date: Sun, 23 Sep 2001 15:09:26 +0000
Subject: Re: Writing newlines in files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68478@lists.php.net to get a copy of this message
put \n at the end ----- Original Message ----- From: "Big5ive" <big5ive@gmx.net> To: <php-general@lists.php.net> Sent: Sunday, September 23, 2001 11:36 PM Subject: [PHP] Writing newlines in files > Hi! > > $FTP_FILE="d:\programme\serv-u\ServUDaemon.ini"; > $fp = fopen("$FTP_FILE", "a"); > $data="\n\n[USER=$username|1]\nPassword=$pw\nHomeDir=d:\\nLoginMesFile=c:\wi > ndows\profiles\flo\my > documents\msg.txt\nDiskQuota=1|301443514202|24963514202\nAccess1=D:\-=Upload > s=-|RWLCP\nAccess2=D:\Moviez|RLP\nAccess3=D:\Music|RLP"; > fwrite($fp,$data); > fclose($fp); > > That's my code and i want to make newlines in the text file..the file is > text//plain but instead of a newline there are some awesome letters.. > > Please help me.. > > -- > Big5ive > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#68478) next »