|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-09 16:24 UTC] iliaa@php.net
[2003-01-09 16:32 UTC] caseymanus at msn dot com
[2003-01-09 17:10 UTC] iliaa@php.net
[2003-01-31 13:47 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Usings the basic fgetcsv example, <?php $row = 1; $fp = fopen ("test.csv","r"); while ($data = fgetcsv ($fp, 1000, ",")) { $num = count ($data); print "<p> $num fields in line $row: <br>\n"; $row++; for ($c=0; $c < $num; $c++) { print $data[$c] . "<br>\n"; } } fclose ($fp); ?> If the CSV contains a double quote, fgetcsv hangs on that line and memory utilization spikes. I have reproduced this.