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 #172815 is a reply to message #172812] Thu, 03 March 2011 19:44 Go to previous messageGo to previous message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma:
Senior Member
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.

--
40. I will be neither chivalrous nor sporting. If I have an unstoppable
superweapon, I will use it as early and as often as possible instead
of keeping it in reserve.
--Peter Anspach's list of things to do as an Evil Overlord
[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: Wed Nov 27 18:46:24 GMT 2024

Total time taken to generate the page: 0.04760 seconds