Re: How to put a "new line" character with fputs($birthday_file, $content);
| From: | Tracker 1 | Date: | Mon, 24 Jun 2002 09:27:02 +0000 |
| Subject: | Re: How to put a "new line" character with fputs($birthday_file, $content); | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103588@lists.php.net to get a copy of this message | ||
Download unix2dos.exe (there is also a dos2unix.exe)
http://www.bastet.com/software/UDDU.ZIP
If you are running the php on *nix, and wanting to import the file
on excel, you will need it..
Another thing you can do, is create it in an html/table format
<table>
<tr>
<td>data1</td>
</tr>
....
</table>
this will be read fine by excel regardless of the end of line string.
--
=======================================================================
Michael J. Ryan - tracker1[*at*]theroughnecks.com
Roughneck BBS: http://www.theroughnecks.net
telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc - http://www.trillian.cc/
"Alfredo" <Alfredo1@mexbus.net> wrote in message
news:20020621235713.12030.qmail@pb1.pair.com...
> Hi,
>
> I am saving the result of a query on a text file. Then I want to open it
> with excel.
>
> At the moment, when I open it with excel, all results appear in one very
> long line. How could I insert a "new line" character at the end of each
> record?
>
> Thanks
>
> Alfredo
>
>