I want to read the Uploaded Excel file in php. so i downloaded excel_reader2.php
from following link
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With