$filename = "I:/MyApp/PhpTest/Web/db1.xls";
$sheet1 = 1;
$sheet2 = "subcompany";
$excel_app = new COM("excel.application") or Die ("Did not connect");
echo $excel_app->Version;  
$Workbook = $excel_app->Workbooks->Open($filename) ;错误提示:
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Office Excel<br/><b>Description:</b> 不能取得类 Workbooks 的 Open 属性' in I:\MyApp\PhpTest\Web\Import.php:61 
Stack trace: #0 I:\MyApp\PhpTest\Web\Import.php(61): variant->Open('I:/MyApp/PhpTes...') #1 {main} thrown in I:\MyApp\PhpTest\Web\Import.php on line 61
输出的版本信息是11.0
从网上复制下来的,为啥在本地用的时候报错呢? 各位大侠帮帮忙