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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sven dot packmor at tz-mikroelektronik dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 13:01:30 2025 UTC