Re[2]: [PHP] pulling data out of a text file
| From: | Richard Kurth | Date: | Thu, 28 Dec 2000 05:47:06 +0000 |
| Subject: | Re[2]: [PHP] pulling data out of a text file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32052@lists.php.net to get a copy of this message | ||
Hello Richard,
Wednesday, December 27, 2000, 8:35:48 PM, you wrote:
>> $row[0]= $domain;
RL> All these are backwards... You want $domain = $row[0];
RL> Also, if this is a true CSV file, your explode will not work when you hit a
RL> field with a comma embedded in it:
RL> zend.com,"Zend Technologies, LTD",Richard,Lynch,...
RL> is valid CSV, but you're going to get all messed up by those quotes and
RL> embedded comma in the Company.
RL> Fortunately, there's a builtin PHP function for reading CSV files. See the
RL> file system section of the manual.
Thank The fgetcsv work perfectly
--
Best regards,
Richard mailto:rkurth@pacifier.com