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.
Download the file to a local drive on your server, even if just as a temporary file, then try to identify/read it.... but PHPExcel uses fseek() for most of its Readers, which isn't supported by many of the stream wrappers.