I have hex text editor which could display hex value for each character. I fould that this text file has only carriage-return (0D) in end of record but other text file had carriage-return with line feed (0D 0A). So, when I open this file with fget or fgetcsv; PHP treat for 1 record or 1 line. If someone known how to handle only carriage-return character, please tell me.
Sommai At 09:06 28/3/2002 +0000, George Pitcher wrote: >Something I used to do about 17-18 years ago to analyse typeseting code was >to use DOS's 'Debug'. It gave a hex value for each character in one panel >while scrolling thru the file. Compare this against the Excel printout and >you should find what code is being used for lf. > >Hoping that debug is still available from the C: prompt? > >George >----- Original Message ----- >From: "Sommai Fongnamthip" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, March 28, 2002 8:53 AM >Subject: [PHP-DB] csv without line feed > > > > Hi, > > I have text file with CSV like format (use # sign separate each field) but > > there did not have any end of line character. This file could open in m$ > > excel but if I opened it in any text editor it will display in 1 line. >How > > could I handle this file in PHP code? > > let see the example it attach file. > > > > Sommai Fongnamthip. > > >---------------------------------------------------------------------------- >---- > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php ---------------------------------------------------------- Please be informed that all e-mail which are addressing to thaithanakit.co.th will need to be changed to BTsecurities.com by March 1, 2002 Thank you. :-) ---------------------------------------------------------- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php