|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19596 ?
Submitted: 2002-09-25 12:26 UTC Modified: 2002-10-02 07:25 UTC
From: sven dot packmor at tz-mikroelektronik dot de Assigned:
Status: Not a bug Package: COM related
PHP Version: 4.2.3 OS: windows2000/windowsxp
Private report: No CVE-ID: None
 [2002-09-25 12:26 UTC] sven dot packmor at tz-mikroelektronik dot de
$strfilename = ".\\test.xls";
$strfilename = realpath($strfilename);
$exapp = new COM("Excel.application") or Die ("Did not connect to Excel");
if (file_exists($strfilename))
 $wkb = $exapp->Workbooks->open($strfilename);
 echo "Excel wurde ge?ffnet";

If apache or IIS runs not under LocalSystem (admin-rights) 
the script cause folowing error:

Warning: Unable to obtain IDispatch interface for CLSID {00024500-0000-0000-C000-000000000046}: Zugriff verweigert in d:\projekte\php_daimlerchrysler\apacheDaten\testexcel.php on line 3
Did not connect to Excel


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-25 13:01 UTC]
 [2002-10-02 07:25 UTC]
fix your ACLs then, this is not a php issue.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 17:01:30 2024 UTC