
Francisco - 2012-09-12 19:05:55
If I select a .xlsx file, this work fine:
$xlsx = new SimpleXLSX($filedir);
$file = $xlsx->rows();
if ($file) {
//code OK
} else {
echo "error";
}
But, if I change the name of any file to XLSX (eg "mv file.ods file.xlsx") and test that code again, it breaks before get into "else". How I can check if the file is a REAL XLSX?
Sorry about my english, and thanks for this php-class!