I am trying to use LOAD DATA INFILE to insert some records into a table. Unfortunately, it\'s not working.
LOAD DATA INFILE
Here are some details
If I use this i
Easier work around is to use exec()
exec("mysql -u myuser -pMyPass -e \"USE mydb;TRUNCATE mytable;LOAD DATA INFILE '" . $file . "' IGNORE INTO TABLE mytable;\"; ");