TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
snowal raj
NA
166
39.5k
Read and write a csv file in php
Apr 7 2017 8:29 AM
Hai,
I need to read and write from csv file ,
and i am try this but its not working
<?php
$file = fopen("C:\Users\Downloads\workorder.csv","r");
$sno=1;
while (($line = fgetcsv($file)) !== FALSE) {
//$line is an array of the csv elements
print_r($line);
}
fclose($file);
?>
Reply
Answers (
3
)
Can`t able to run the PHP using Netbeans
how to create a pdf file with the help of php script