Re: Writing newlines into files
[email protected] ("Mike Frazer") Thu, 25 Oct 2001 13:06:47 -0400
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
May have something to do with the fact that Windows doesn't use a standard newline. On Windows I believe you need "\r\n" to get a true newline (it's similar to the Visual Basic/VBScript "CRLF" where you need both a carriage return AND a line feed). Try that and email me to let me know if it worked or not. Mike Frazer "Big5ive" <[email protected]> wrote in message news:[email protected]... > 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 > >