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
Post a Comment