I was made function to download a xls file. After user fill in this form, user will upload this form so that my application can read this form. But when I try to read the file, error was occur and said the file is not readable.
As information I use Spreadsheet_Excel_Reader class. I read the file name or temp file but both yield same error.
Please advice me a solution about this error.
And below is my scrip
- Code: Select all
$type = $_FILES["file"]["type"];
$name = $_FILES["file"]["name"];
$temp = $_FILES["file"]["tmp_name"];
$path = SRV_ROOT.'voyage/temp/form.xls';
$data = new Spreadsheet_Excel_Reader();
$page = 0;
error_reporting(E_ALL ^ E_NOTICE);