if you are using [man]fgetcsv[/man], you can keep a count of which line you are on and discard it if it's the first line. something like this:
<?php
$row = 1;
$handle = fopen("test.csv", "r");
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
if ($row == 1) {
// skip it!
} else {
// insert the values in $data into your db
}
$row++;
}
fclose($handle);
?>
If you are using an sql query with LOAD DATA INFILE then you can use the IGNORE number LINES syntax like this:
LOAD DATA INFILE '/tmp/test.txt' INTO TABLE test IGNORE 1 LINES;