fgetcsv limitations?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jonaed
    New Member
    • Apr 2006
    • 2

    #1

    fgetcsv limitations?

    This is my code:

    [PHP]$handle = fopen ($file, "r");

    $c = 1;
    while (($values_list = fgetcsv ($handle, 1000, ',', '"')) !== FALSE)
    {
    echo $c . "<br>\n";
    $c = $c + 1;
    }[/PHP]

    ... this reads 2265 lines from a file that has that has over 60,000 lines. Why does it just stop without any warnings or errors (both of which would show if there was a problem)?

    The csv file is properly formatted (I checked).

    Any suggestions would help. Thanks
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    Gets line from file pointer and parse for CSV fields

    Comment

    Working...