OK, so I have this problem with MySQL 3.23.53 (win2k) and Apache2.0.43(running as module) and PHP4.3.0(dev) (this is necessary for Apache2.0.43 to run as module; php bug). I have a script that load data from a csv file into a DB. The problem is in newer version of MySQL 'LOAD DATA LOCAL INFILE' is disable for security feature.
By adding the line below in c:\winnt\my.ini, I can use 'LOAD DATA LOCAL INFILE' from mysql client from the command prompt.
[mysql]
local-infile=1
Now I am still unable to use 'LOAD DATA LOCAL INFILE' from a php script via the webbrowser, I get this message:
The used command is not allowed with this MySQL version
MySQL online document
said to use mysql_init and mysql_options, but I can't figure it out. What is the proper syntax to add this two functions before the mysql_connect to get this working properly?
Please help.
Thank you.
By adding the line below in c:\winnt\my.ini, I can use 'LOAD DATA LOCAL INFILE' from mysql client from the command prompt.
[mysql]
local-infile=1
Now I am still unable to use 'LOAD DATA LOCAL INFILE' from a php script via the webbrowser, I get this message:
The used command is not allowed with this MySQL version
MySQL online document
said to use mysql_init and mysql_options, but I can't figure it out. What is the proper syntax to add this two functions before the mysql_connect to get this working properly?
Please help.
Thank you.