/*
string fgetss ( resource $handle [, int $length [, string $allowable_tags ]] )
*/
$file = fopen("http://www.collectivesolver.com/3366/how-to-read-csv-file-with-php", "r");
if ($file)
{
while (!feof($file))
{
$buffer = fgetss($file, 4096 , "<div>,<p>");
echo $buffer;
}
}
fclose($file);
/*
run:
How to read csv file with PHP - Programming & Software Q&A | CollectiveSolver
var qa_root = '..\/'; var qa_request = '3366\/how-to-read-csv-file-with-php'; >
var b=document.getElementsByTagName('body')[0]; b.className=b.className.
replace('qa-body-js-off', 'qa-body-js-on');
Remember
Register
Programming & Software Q&A | CollectiveSolver
SyntaxHighlighter.all();
Questions Unanswered Tags Users
Welcome to Programming & Software Q&A. A website you can trust. I check,
compile and run every program. Contact me at: aviboots(AT)netvision.net.il
Most popular tags
php c c# javascript sql html mysql vb# java python css html5 winapi dom win32
jquery css3 software cpp prototype opengl wordpress phpmyadmin hardware
dot-net-library webgl
1,309 questions
2,000 answers
573 users
How to read csv file with PHP
2 views
php
asked 22 hours ago by avibootz (106,260 points)
3 Answers
0 votes
$csv_file = fopen("e:/test.csv", "r"); while
...
*/