FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » fgetcsv -- No error reporting?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: fgetcsv -- No error reporting? [message #172816 is a reply to message #172815] Thu, 03 March 2011 20:18 Go to previous message
matt[1] is currently offline  matt[1]
Messages: 40
Registered: September 2010
Karma:
Member
On Thursday, March 3, 2011 2:44:56 PM UTC-5, Peter H. Coffin wrote:
> On Thu, 3 Mar 2011 09:44:46 -0800 (PST), matt wrote:
>
>> Finally, I thought of stepping through with two file handles, one
>> being read by fgets and one by fgetcsv and doing a line-by-line
>> comparison. Culprit turned out to be a number of unmatched double
>> quotes through the file, causing fgetcsv to pull several records into
>> single fields mid-document.
>>
>> I've forwarded the RFC to the guy who is sending me the CSV files :)
>
> Best of luck with that. 99.5% of the CSV files I've ever dealt with were
> created with stuff that was completely out of the control of the user.
> Hell, 80% of them were from Excel alone.

I'm dealing with PeopleSoft over here...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: String Question
Next Topic: copy data from one table to another table
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 23:23:44 GMT 2024

Total time taken to generate the page: 0.04604 seconds