Google

Saturday, July 25, 2009

Read CSV file through PHP

Read CSV file through PHP

/*

$file_handles = fopen("my.csv", "r");

while (!feof($file_handles) ) {

$line_of_texts = fgetcsv($file_handles, 1024);

print $line_of_texts[0] . $line_of_texts[1]. $line_of_texts[2] . "
";

}

fclose($file_handle);

*/

7 comments:

Jhon Davis said...

/*
$line_of_texts = fgetcsv($file_handles, 1024);

*/

what the above line is intructing!

- John Devos
Magento Themes

tania said...

@ Jhon it is quite simple one parameter is file handler the fgetcsv function return value to line_of_texts.


- Tanya
Web Designers

Magento Templates said...

Surely a great post on the topic of as how to go and read a CSV file through use of PHP....

Magento Themes

Anonymous said...

A great post with on the topic of reading CSV posts through PHP... Well done thanks a lot for sharing in the information...

Commercial Buildings for Sale

Anonymous said...

A great post as to how one can read a CSV file using PHP scripting. Well done a great effort...

Garage

Aanya said...

Nice information, many thanks to the author. It is incomprehensible to me now, but in general,
The usefulness and significance is overwhelming.
Thanks again and good luck!
----------------------
play roulette

sabreena said...

I totally agree with what you had to say.




---------------

Casino online