Re: Text file wont' have newlines?
| From: | Ashwin Purohit | Date: | Sun, 30 May 2004 05:03:43 +0000 |
| Subject: | Re: Text file wont' have newlines? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187215@lists.php.net to get a copy of this message | ||
Ok, thanks much! It works now.
Needs a new line and return. fwrite($fp, ($credit . "\n\r") );_________________________________________________________________ Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.click-url.com/go/onm00200362ave/direct/01/wantHi everybody, I have this script in a file that allows users to upload files, and Ito know who submitted what so I write $userfile_name and $credit1(their name) to CREDIT.txt in the same directory like so :$credit = $userfile_name.': '.$credit1."\n";$fp = fopen('CREDIT.txt','a'); fwrite($fp, $credit); fclose($fp); But every new submission ends up on the same line, there is never a line break in the text. Any suggestions? Thanks, AMP _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php