phpexcel - PHP not detecting XLS file as zip -


i using library read xls files internally uses php's zip_open() function. when creating files locally , uploading test server works fine. however, when use xls files downloaded website (normal download via browser), not work, instead returning error 19 meaning file not seen zip file, incorrect. excel opens file without problems. if re-save file locally xlsx file , upload it, same error (in instance file opened php's ziparchive class). ideas reason be? checked files not read only, possibly unix permissions set not displayed in windows? (doubt this, error code indicates file accessed, not identified xls)

using: apache under windows (wamp)
php 5.4.12

it seems had misread line of code, zip check done determine if xls file incorrectly named xlsx file. problem xls file returns no sheets when parsing, need still. not know why saving xls file xlsx file (using excel) results in incorrect zip archive though, guessing related.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -