From:             [EMAIL PROTECTED]
Operating system: windows2000/windowsxp
PHP version:      4.2.3
PHP Bug Type:     Unknown/Other Function
Bug description:  ?

$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



-- 
Edit bug report at http://bugs.php.net/?id=19596&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19596&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19596&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19596&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19596&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19596&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19596&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19596&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19596&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19596&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19596&r=globals

Reply via email to