I am using PHPExcel to read data from an XLSX file. Everything works correctly on Debian and Apache, but on IIS it does not work at boot time:
$input = "C:/Inetpub/wwwroot/import/data/test.xlsx";
$objReader = new PHPExcel_Reader_Excel2007();
$objReader->setReadDataOnly(true);
print "Starting...";
try {
$objPHPExcel = $objReader->load($input);
print("Done!");
} catch (Exception $e) {
print "Caught exception: " . $e->getMessage();
}
Unfortunately, after "Start ..." there are no additional results, although errors and tracking are not displayed in IIS logs. The path to the file is correct (checked by both / and /) and has the appropriate permissions. Also an exception does not occur (tkx @Mark).
Please inform:
1) Is there a way to enable some debugging to see exactly where PHPExcel stops and (maybe) why?
2) What do I need to change for this code to work on Windows and IIS.
source
share