It is difficult to answer without knowing at least two other elements:
1) Does your database work on the same server that the PHP code is running on?
2) How big is the file? That is an average of 20 csv records? 200? 20,000?
, csv insert (, , ) "" , PHP .
, csv 20 , , , SQL.