phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Database: Read CSV Format

Tag: database, CSV   Category: PHP Database
post: 05 Feb 2008 read: 362


CSV Database Step By Step Tutorial - part 2: After create csv file at previous post, Now, we try to read that file. You can use fgetcsv() to read csv file.


<?
$readcsv = fopen('test.csv', 'r');

echo "<pre>";
while ($line = fgetcsv($readcsv)) {
    print_r($line);
}
echo "</pre>";

fclose($readcsv);
?>


Series this article:
Database: Using CSV as Data Storage Alternative
Database: Read CSV Format

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting