Re: Newlines in files

From: Date: Tue, 09 Oct 2001 13:52:39 +0000
Subject: Re: Newlines in files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70471@lists.php.net to get a copy of this message
It should. The next thing I would ask is are you looking at the resulting file in a Windows based text tool like NotePad? If so, you won't see the newline. Use WordPad on Windows if this is the problem or write "\r\n" into the file. -- Blake Schwendiman Intechra LLC PHP 4 Developer's Guide (http://www.amazon.com/exec/obidos/ASIN/0072127317/) "Big5ive" <big5ive@gmx.net> wrote in message news:20011003171102.84009.qmail@pb1.pair.com... > My Code: > $PW_LIST="../config/pw.txt"; > $fp=fopen("$PW_LIST","a"); > fputs($fp,"$username=$pw\n"); > fclose($fp); > > This should make a newline after printing $username=$pw, shouldn't it!? > But it doesn't!!! > >

« previous php.general (#70471) next »