I want to read the Uploaded Excel file in php. so i downloaded excel_reader2.php
from following link
when I inserted this into my code i got following Error:
The filename try.xlsx is not readable.
My code is:
if (file_exists($filepath))
{
echo "File present";
}
else
{
die('The file ' . $filename . ' was not found');
}
$data = new Spreadsheet_Excel_Reader($filename,false);
$data->read($filename);
$data->val(1, 'A');
echo $data;
So after searching in Google I got link that is Here
After Following this also i am getting same error.
So can any one help me, where I am going wrong?
Thank you.
PEAR SEW cannot read OfficeOpenXML (.xlsx) format files, only the older BIFF (.xls) format files. If you want to read .xlsx files, then you need a reader library that does support that format such as PHPExcel
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.