php.net |  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";
 $wkb->close(false,$strfilename,false);
 $exapp->Quit();
 $exapp->Release();
}

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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-25 13:01 UTC] sander@php.net
Reclassified.
 [2002-10-02 07:25 UTC] phanto@php.net
fix your ACLs then, this is not a php issue.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 10:05:45 2022 UTC