note 24007 added to class.com
| From: | audienst at davidson dot edu | Date: | Sat, 03 Aug 2002 18:52:55 +0000 |
| Subject: | note 24007 added to class.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34235@lists.php.net to get a copy of this message | ||
Can anyone tell me why I get this error "Fatal error: Cannot instantiate non-existent class:
com in /home/bassam/bwcellar-www/test2.html on line 3" when I'm running the following
code:
<--BEGIN CODE-->
$db_connection = new COM("ADODB.Connection") or die("Cannot start ADO");
;
$db_connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" .
realpath("../db/products.mdb") . "
;DefaultDir=" . realpath("../db");
$db_connection->open($db_connstr);
$db_connection->Close();
<--END CODE-->
I am assuming this is because access is not supported by the server, is this the case?
--
http://www.php.net/manual/en/class.com.php
http://master.php.net/manage/user-notes.php?action=edit+24007
http://master.php.net/manage/user-notes.php?action=delete+24007
http://master.php.net/manage/user-notes.php?action=reject+24007