How can I get the total number of rows that are in a CSV file using PHP? I\'m using this method but can get it to work properly.
if (($fp = fopen(\"test.csv\
Try
$c =0; $fp = fopen("test.csv","r"); if($fp){ while(!feof($fp)){ $content = fgets($fp); if($content) $c++; } } fclose($fp); echo $c;