0

i my php i have

$import = mysql_query("LOAD DATA LOCAL INFILE<br>
'/directory/unzip/CARACTERISTIQUES.TXT'
REPLACE INTO TABLE CARACTERISTIQUES
FIELDS TERMINATED BY ','
ENCLOSED BY '\"' 
LINES TERMINATED BY '\\r\\n'");


if (!$import) {echo "<br/>error! insert-db failed : ". mysql_error();}
else {echo "<br/>yeah!";}

i read that i need to have

$db_connect = mysql_connect($db_server,$db_userid,$db_pass,false,128); 

to open my connection.

in my phpinfo file i get

Directive   Local Value Master Value
mysql.allow_local_infile    On  On

but i keep getting the follwing error :

The used command is not allowed with this MySQL version

any thoughts ?

zefrank
  • 53
  • 2
  • 6

0 Answers0