[PHP-DEV] Bug #11655 Updated: Ivoking COM will not work. From: phanto <email protected>
Date: 06/27/01

ID: 11655
Updated by: phanto
Reported By: roland <email protected>
Status: Open
Bug Type: COM related
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:

i can't reproduce this. are you sure that your mdb is in the right place ? i get this kind of error if the DSN is invalid.

harald

Previous Comments:
---------------------------------------------------------------------------

[2001-06-26 10:29:12] roland <email protected>
The exception occurs in line 5, which is

$dbc->Open($myDSN);

---------------------------------------------------------------------------

[2001-06-26 10:20:46] phanto <email protected>
in which line does the warning occur ?

---------------------------------------------------------------------------

[2001-06-25 06:49:59] roland <email protected>
This does not work, but worked unchanged in PHP 4.0.4pl1

$myDSN = "DSN=dbEmpty;DBQ='c:\test.mdb';DRIVER={Microsoft Access Driver(*.mdb)};UID='root';PW='';";

$dbc = new COM("ADODB.Connection");
$dbc->Provider = "MSDASQL";
$dbc->Open($myDSN);

Warning: Invoke() failed: Exception occurred (line $dbc->Open($myDSN); )

Setting from php.ini:
;com.typelib_file =
com.allow_dcom = On

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11655&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>