Sponsored By
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Article
Forum
Blog
Quiz
Beginner
Careers
Contact
Login
Email Id
Password
Remember Me
Forgot Password?
Sign Up
Home
|
Product
|
Services
|
About Us
|
Interview
|
DeveloperSection
|
Submit an Article
|
Submit Blog
Report Abuse Form
Reason:
Home
>>
Other Programming
>>
PHP
>>
How to import csv file in php?
Author
Post
Pravesh Singh
Total Post:
46
Member Since:
12/12/2011
Points:
238
How to import csv file in php?
Posted On:
3/12/2012 2:11:54 AM
Report Abuse
Hello Guys,
I want to import csv file in php but I don't have and idea because I'm naive user for php. So please help me and paste your code snippets too.
Reply
Author
Post
Arun Singh
Total Post:
49
Member Since:
7/1/2011
Points:
338
Re: How to import csv file in php?
Posted On:
3/12/2012 8:36:45 AM
Report Abuse
Hi Pravesh,
To import csv file data, you can use array to store data of file line by line. Check this code snippets...
<?php
$arrResult = array();
$arrLines = file('MyCSVFile.csv');
foreach($arrLines as $line) {
$arrResult[] = explode( ',', $line);
}
?>
It might be helpful for you.
Reply
Author
Post
Vaidotas Dazzas
Total Post:
1
Member Since:
6/14/2012
Points:
7
Re: How to import csv file in php?
Posted On:
6/14/2012 5:41:59 AM
Report Abuse
Using this
CSV Import script
You can import data into MYSQL then echo in php.
Reply
Report Abuse Form
Reason:
Total Online Users:
2709
Advertisement
Advertise with Us
Copyright ©
2009 - 2013
MindStick. All Rights Reserved.
Home
|
Contact Us
|
Services
|
Feedback
|
Advertisement
|
Privacy Policy
|
Term & Conditions
|
About Us