I tried adding lines to my.cnf
[mysql]
infile = 1
[mysqld]
infile = 1
SHOW VARIABLES LIKE "%infile"
displays true in mysql.
But LOAD DATA does not work. I tried it in a PHP script and in phpMyAdmin.
It only works if I start mysql from the command line with the --allow-infile
flag
mysql --local-infile -u root -p db_name
But this did not solve the PHP problem.