gav - 2006-12-05 22:34:40 - In reply to message 1 from Michi Kind
I had the same problem, I contacted Alex who wrote the script he pointed me in the right direction. In PHP 4.2.0 and later the $HTTP_POST_FILES array has been changed to $_FILES so you need to change "$csv->file_name = $HTTP_POST_FILES['file_source']['tmp_name'];" to "$csv->file_name = $_FILES['file_source']['tmp_name'];" without the " in the Quick_CSV_import_example.php file.
bimeldip - 2007-09-26 10:12:48 - In reply to message 2 from gav
I am having a problem...when i run this codes in my localhost..it works perfectly fine but when i upload the file to a server(my friends)
i am unable to run it and the encoding (drop down list) is empty and i cannot import the data into a temporary table in mysql database...
Can i know why this happens... the error that i get is :
PHP Notice: Undefined variable: HTTP_POST_FILES in /usr/home/www/staging/b/trial/Quick_CSV_import2.php on line 13, referer: http://pdswebspace.serveftp.net:88/staging/b/trial/