LOAD DATA LOCAL INFILE is forbidden, check mysqli.allow_local_infile
I am facing this issue in live server while uploading a csv. But i have no problem while running this in my local machine. After searching the issue i found many people suggest to change
'mysqli.allow_local_infile = Off'
to 'On' in php.ini I have changed it but still now unable to get rid off this problem.
LOAD DATA LOCAL INFILE '/home3/xxx/public_html/zzz/apps/assets/uploads/excel/contacts.csv' INTO TABLE
tbl_users
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES (fname, lname, email)
My live server php version is PHP Version 7.4.20