I am using PHPExcel
to read a large "xls" file. Firstly, I am determining the file type for reader using PHPExcel_IOFactory::identify($inputFileName)
. However, PHPExcel is wrongly identifying it as HTML file and using HTML Reader which fails with DOM errors.
After some searching, I found that PHPExcel does not work well with stream wrappers. Refer here.
I have no idea what stream wrappers are, and the file I am trying to read is downloaded using wget.
Please let me know how to remove the stream wrappers, so that PHPExcel can identify the file correctly.
Thank you.