Reading file is not success everytime

Topics: Developer Forum, Project Management Forum, User Forum
Dec 8, 2011 at 8:19 AM
Edited Dec 8, 2011 at 8:20 AM

I have built a program to read the csv and excel file based on the PHPExcel.

The function is successful and read the file.

However,it is not success every time. Sometimes,it occurs the follow message:

Fatal error: Uncaught exception 'Exception' with message 'Could not open C:\WIN\Temp\php58DA.tmp for reading! File does not exist.' in D:\test\PHPExcel\Classes\PHPExcel\Reader\CSV.php:211 Stack trace: #0 D:\test\PHPExcel\Classes\PHPExcel\Reader\CSV.php(151): PHPExcel_Reader_CSV->loadIntoExisting('C:\WIN\Temp\p...', Object(PHPExcel)) #1 D:\test\PHPExcel\insert_excel.php(89): PHPExcel_Reader_CSV->load('C:\WIN\Temp\p...') #2 {main} thrown inD:\test\PHPExcel\Classes\PHPExcel\Reader\CSV.php on line 211

I have used the same file to test the program. 

Can any one help me???