Re: [PHP-DB] csv without line feed
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 +, 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
Re: [PHP-DB] csv without line feed
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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[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. 28-03-2002# #TR DEP##794,299.09#6,288,278.76#043 28-03-2002# #CASH DEP# #34,107.00#6,322,385.76#076 28-03-2002# #CASH DEP##341,410.84#6,663,796.60#005 28-03-2002#6779642 #TR WTD CHQ#62,332.81# #6,601,463.79#047 28-03-2002# #CASH DEP##120,313.13#6,721,776.92#084 28-03-2002# #ELC TR-BOA# #33,464.98#6,755,241.90#127#REFER TO : ASIA1272053867#REFER TO : ASIA0911006286# # # # 28-03-2002# #CASH DEP##260,695.50#7,015,937.40#067 28-03-2002# #CASH DEP# #253,175.44#7,269,112.84#067 28-03-2002# #TR DEP##45,431.00#7,314,543.84#091 28-03-2002#6779645 #TR WTD CHQ#6,664.81# #7,307,879.03#091 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php