Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Read and write a csv file in php
snowal raj
Apr 7 2017 8:29 AM
313
Reply
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);
?>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Can`t able to run the PHP using Netbeans
how to create a pdf file with the help of php script