[horde] csv file import

Greg Johnson greg.johnson at anderkol.com
Sat Dec 7 22:21:36 PST 2002


Re -  trying to import a csv file into turba, message is: 
> --------------------------------------------------------------------- 
> Warning: Unable to open '/tmp/phpMmZwbF' for reading: No such file or 
> directory in /var/www/horde/lib/Data/csv.php on line 204 
>  
>  Warning: Unable to move '/tmp/phpMmZwbF' to '/tmp/phpMmZwbF' in 
> /var/www/horde/lib/Data/csv.php on line 204 
>  
>  Fatal error: Call to a member function on a non-object in 
> /var/www/horde/lib/Data/csv.php on line 205 
 
problem appears to be that at line 203 $file_name and 
$_FILES['import_file']['tmp_name'] are the same name, hence the "Unable to move 'x' 
to 'x'" message. 
 
have temporarily fixed this problem with the following at line 203: 
/*          $file_name = $tmp_dir . '/' . basename($_FILES['import_file']['tmp_name']); */ 
	$file_name = $tmp_dir . '/' . 'xxx'; 
 
and the import continues to a successful completion. 
 
hope this helps get to a proper fix. let me know if you need more info. 
regards. 
greg 
 
 
 
 

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


More information about the horde mailing list