|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-10-16 10:51 UTC] c dot schmidt-koester at gmx dot net
I'm using Win98, Apache 1.3.9, MySQL 3.23-beta and PHP4.0.3. Since PHP4.0.3 there is a problem with import data to MySQL (LOAD DATA LOCAL INFILE). It seems that PHP is filtering out all slashes of the file path, so MySQL can't find the file. mysql_error() and mysql_errno() say something like this "File 'e:TempphpA154.TMP' not found (Errcode: 2)" LOAD DATA INFILE (without LOCAL) seems to be ok. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 16:00:01 2025 UTC |
I am having a problem wich is likewise I think Loading data from a windows host to a linux server echo "<input type=\"hidden\" name=\"file1\" value=\"D:\gegevens.txt\">"; $file1 = str_replace("\\" , "\\\\", $file1); $result=mysql_query ("LOAD DATA LOCAL INFILE '$file1' INTO TABLE agenda (plaats, activiteit)"); returns this: File 'D:\\gegevens.txt' not found (Errcode: 2) If I do the same on the mysql server wich runs on windows at home and type in the mysql monitor: load data local infile 'D:\\gegevens.txt' into table agenda; everything works fine. So the location with the extra backslash should work.... I spend a lot of time on this and tried about everything and can't figure it out.