Re: [PHP] Parsing CSV files

2007-04-28 Thread Edward Vermillion
On Apr 28, 2007, at 2:59 PM, Richard Lynch wrote: On Fri, April 27, 2007 5:25 pm, Fernando Cosso wrote: One word: explode :D Two Words: Quotes, Commas :-p I think I wrote a "parser" a while back that properly handled commas in quotes for csv files. Probably did it the hard way but it wo

Re: [PHP] Parsing CSV files

2007-04-28 Thread Richard Lynch
On Fri, April 27, 2007 5:25 pm, Fernando Cosso wrote: > One word: explode > :D Two Words: Quotes, Commas :-p CSV is a nasty nested mess of escapes for escapes from somebody who clearly did NOT understand how to write a parser/grammar. Oh, yeah, it came from Microsoft, I think. That explains eve

Re: [PHP] Parsing CSV files

2007-04-27 Thread Todd Cary
Many thanks! I must be losing my eyesight! There it is and it works as expected...great. Todd Richard Lynch wrote: On Thu, April 26, 2007 3:39 pm, Todd Cary wrote: Is there a function that can parse a comma delimited file into an array? fgetcsv should work... -- Ariste Sof

Re: [PHP] Parsing CSV files

2007-04-27 Thread Richard Lynch
On Fri, April 27, 2007 2:44 pm, Tijnema ! wrote: > On 4/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Fri, April 27, 2007 1:58 pm, Tijnema ! wrote: >> > There are more interesting things to do than updating >> documentation ;) >> > >> > I was wanting to extend the CURLOPT_ constants, but it

Re: [PHP] Parsing CSV files

2007-04-27 Thread Tijnema !
On 4/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, April 27, 2007 1:58 pm, Tijnema ! wrote: > There are more interesting things to do than updating documentation ;) > > I was wanting to extend the CURLOPT_ constants, but it seemed that > nobody had interest in that, so i didn't ... I b

Re: [PHP] Parsing CSV files

2007-04-27 Thread Richard Lynch
On Fri, April 27, 2007 1:58 pm, Tijnema ! wrote: > There are more interesting things to do than updating documentation ;) > > I was wanting to extend the CURLOPT_ constants, but it seemed that > nobody had interest in that, so i didn't ... I believe the issue here is that having the constants with

Re: [PHP] Parsing CSV files

2007-04-27 Thread Richard Lynch
On Fri, April 27, 2007 9:45 am, Daniel Brown wrote: > Maybe the PHP site itself should be Wiki-fied so that we could > just go > in ourselves and fix the errors. I don't see that happening any time > soon > though Gah. php.net as a Wikki would be a nightmare... If you *really* want to f

Re: [PHP] Parsing CSV files

2007-04-27 Thread Richard Lynch
On Thu, April 26, 2007 3:39 pm, Todd Cary wrote: > Is there a function that can parse a comma delimited file into an > array? fgetcsv should work... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah

Re: [PHP] Parsing CSV files

2007-04-27 Thread Tijnema !
On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: >> Tijnema ! wrote: >> > On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: >> >> Daniel Brown wrote: >> >> >Maybe the PHP site itself should be Wiki-fied so that we could >> >> just go >> >> >

Re: [PHP] Parsing CSV files

2007-04-27 Thread Stut
Tijnema ! wrote: On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: >> Daniel Brown wrote: >> >Maybe the PHP site itself should be Wiki-fied so that we could >> just go >> > in ourselves and fix the errors. I don't see that happening a

Re: [PHP] Parsing CSV files

2007-04-27 Thread Tijnema !
On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: >> Daniel Brown wrote: >> >Maybe the PHP site itself should be Wiki-fied so that we could >> just go >> > in ourselves and fix the errors. I don't see that happening any >> time soon >>

Re: [PHP] Parsing CSV files

2007-04-27 Thread Stut
Tijnema ! wrote: On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: >Maybe the PHP site itself should be Wiki-fied so that we could just go > in ourselves and fix the errors. I don't see that happening any time soon > though There's nothing stopping you submitting patch

Re: [PHP] Parsing CSV files

2007-04-27 Thread Tijnema !
On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: >Maybe the PHP site itself should be Wiki-fied so that we could just go > in ourselves and fix the errors. I don't see that happening any time soon > though There's nothing stopping you submitting patches to the documentati

Re: [PHP] Parsing CSV files

2007-04-27 Thread Daniel Brown
Yeah, that's why I followed-up with saying, "I don't see that happening any time soon though" Not only would you have unqualified people putting in bad (though not intentionally wrong) information, there would always be the presence of vandalism, as on any other Wiki. The serious probl

Re: [PHP] Parsing CSV files

2007-04-27 Thread Stut
Daniel Brown wrote: Maybe the PHP site itself should be Wiki-fied so that we could just go in ourselves and fix the errors. I don't see that happening any time soon though There's nothing stopping you submitting patches to the documentation mailing list. As far as I know they welcome d

Re: [PHP] Parsing CSV files

2007-04-27 Thread Daniel Brown
Maybe the PHP site itself should be Wiki-fied so that we could just go in ourselves and fix the errors. I don't see that happening any time soon though On 4/27/07, Eric Butera <[EMAIL PROTECTED]> wrote: On 4/27/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > When I searched for "csv" a

Re: [PHP] Parsing CSV files

2007-04-27 Thread Eric Butera
On 4/27/07, Edward Kay <[EMAIL PROTECTED]> wrote: > When I searched for "csv" against on php.net I got redirected to > http://us2.php.net/manual/en/function.gzeof.php. That isn't exactly > obvious is it? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www

Re: [PHP] Parsing CSV files

2007-04-27 Thread Tijnema !
On 4/27/07, Edward Kay <[EMAIL PROTECTED]> wrote: > When I searched for "csv" against on php.net I got redirected to > http://us2.php.net/manual/en/function.gzeof.php. That isn't exactly > obvious is it? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www

RE: [PHP] Parsing CSV files

2007-04-27 Thread Edward Kay
> When I searched for "csv" against on php.net I got redirected to > http://us2.php.net/manual/en/function.gzeof.php. That isn't exactly > obvious is it? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > OK, sorry for being critica

Re: [PHP] Parsing CSV files

2007-04-27 Thread Tijnema !
On 4/27/07, Eric Butera <[EMAIL PROTECTED]> wrote: On 4/26/07, Edward Kay <[EMAIL PROTECTED]> wrote: > Todd Cary wrote: > > Is there a function that can parse a comma delimited file into an array? > > > > Todd > > > fgetcsv - http://uk.php.net/fgetcsv > > Did you even try looking in the manual? >

Re: [PHP] Parsing CSV files

2007-04-27 Thread Eric Butera
On 4/26/07, Edward Kay <[EMAIL PROTECTED]> wrote: Todd Cary wrote: > Is there a function that can parse a comma delimited file into an array? > > Todd > fgetcsv - http://uk.php.net/fgetcsv Did you even try looking in the manual? Edward -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Parsing CSV files

2007-04-26 Thread Edward Kay
Todd Cary wrote: Is there a function that can parse a comma delimited file into an array? Todd fgetcsv - http://uk.php.net/fgetcsv Did you even try looking in the manual? Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing CSV files

2007-04-26 Thread Brad Bonkoski
Todd Cary wrote: Is there a function that can parse a comma delimited file into an array? Todd http://us.php.net/manual/en/function.fgetcsv.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing CSV files

2007-04-26 Thread Richard Davey
Todd Cary wrote: Is there a function that can parse a comma delimited file into an array? http://uk.php.net/manual/en/function.str-getcsv.php Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk "Never trust a computer you can't throw out of a window" -- PHP General Mailing Lis