Hello,
Is it possible to do local data infile from a php file?
Here is the code I am using now:
$query = "LOAD DATA INFILE 'C:\file.txt' INTO TABLE file FIELDS TERMINATED BY '\t'";
$result = mysql_query($query);
When I run this php script, it didn't work but if I copy and paste the query to phpmyadmin, it works perfectly. So I am wondering if this is possible to be accomplished through a php script instead of phpmyadmin?
Any help would really be appreciated. Thanks!
-Renny