Am starting new thread as old one wandered a bit and would be hard to focus on current state of problem.
Have done a flle upload using post, input type=file then did a file move using move_upload_file to a created directory in the current working directory called temp_uploads, drawback.com/temp_upload, where I can browse to and see the file. Using $_FILE attributes I can parse the file. All is well so far.
Then have a page to select a database from the server and save it as a session variable
$SESSION['database_selected'] and a link to the next page where a table in that database is selected and stored in another session variable, $SESSION['database_table_selected'].
Then the file upload is done and the path to the file is saved as another session variable $_SESSION['target_path']
As a test, they are all echoed out just before trying to doing a mysql_connect, and a mysql_select_db, all of which have fail and succeed output after running. So far so good.
The out put for the session variables just before tying to load data is
Path = temp_uploads/tester_feet_CVS.csv
database = drawback
table - TESTER_FEET
The current working directory is checked just before trying to execute the LOAD DATA INFILE
echo getcwd()."<br/>";
evaluates to /var/www/drawback.com
Next the code I have for the LOAD DATA INFILE
$uploadalready="LOAD DATA INFILE 'temp_uploads/tester_feet_CVS.cvs' INTO TABLE TESTER_FEET FIELDS TERMINATED BY ','";
mysql_query($uploadalready) or die(mysql_error());
which is returning
Can't get stat of '/var/lib/mysql/temp_uploads/tester_feet_CVS.cvs' (Errcode: 2)
so made a copy of the file temp_uploads and put in in /var/lib/mysql/ so that you can see the path exactly like is is displayed when you can see the tester_feet_CVS.cvs file. Which is were it was when it gave this result
What can I try to get this working?