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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 - 28 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC