> 403 -770 -4904 ,CALGARY,AB,CAN,T2,Y,Y,Apr 29 2002
> 12:00:00:000AM,I,GMT-0700,,
Untested, off the top of my head, code...
$pointer = fopen('./file.csv', 'r');
while ( $Data = fgetcsv($pointer, 500) ) {
# Do what you need, for example...
echo 'Their city is: ' . $Data[1];
}
--Dan
--
This is all really straight forward stuff. Here's some code that will get the file
parsed to an array, what you do from there is up to you.
Note: if you have a precise structure for your lines you can say to read from point a
to b using substr(). For example, let's say the first name is exa
t would be the
best way to do this?
Jeff
- Original Message -
From: "* R&zE:" <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 12:16 PM
Subject: Re: [PHP] Parsing text file and dividi
From: Jeff Lewis <[EMAIL PROTECTED]>
Date: Thu, Sep 20, 2001 at 11:59:32AM -0400
Message-ID: <013e01c141ed$3d51f340$76a1a8c0@LEWISJCIT>
Subject: [PHP] Parsing text file and dividing column into three...PLEASE help :)
> I have a very large text file that is set up like so: It contains
> some sma
4 matches
Mail list logo