Ho studiato un po e sono arrivato a questo
<?php
$link = mysql_connect('***', '***', '***');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_select_db('***');
$file = "/web/htdocs/www.pippo.it/home/prova.csv";
$command = "(LOAD DATA INFILE ".$file."
INTO TABLE prova
FIELDS TERMINATED BY ';'
LINES TERMINATED BY '\n')";
$result = mysql_query($command) or die( mysql_error() );
?>
ma evidentemente non ho studiato abbastanza infatti adesso ricevo:
Connected successfullyYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LOAD DATA INFILE /web/htdocs/www.pippo.it/home/prova.csv INTO TABLE prova' at line 1