Re: fgetcvs() 'bug', or am I stupid?

From: Date: Fri, 08 Sep 2000 08:29:33 +0000
Subject: Re: fgetcvs() 'bug', or am I stupid?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2734@lists.php.net to get a copy of this message
Quoting joe@jWebMedia.com who wrote on Thu, Sep 07, 2000 at 05:17:37PM -0500: > I'm using fgetcvs() to parse a CVS file - my file is structed as such: > "data","data2","data3" > "data","data2","data3" > etc... > However, fgetcvs() will always skip the first field of data on a line, > except for in the first line. I've found it's because there's no comma > at the end of the lines, just a newline. Just a hunch: DOS file (cr/lf) versus Unix file (lf) problem ? Maybe fgetcsv gets confused. According to the docs of fgetcsv it should be able to handle that. Weird :) Koos van den Hout -- Koos van den Hout, PGP keyid RSA/1024 0xCA845CB5 via keyservers koos@kzdoos.xs4all.nl or DSS/1024 0xF0D7C263 -?) Fax +31-30-2817051 Visit my site about books with reviews /\\ http://idefix.net/~koos/ http://www.virtualbookcase.com/ _\_V

« previous php.db (#2734) next »