I am working on creating an online storefront for a company. Here is my situation. They currently have an account through earthlink.net which runs Apache on Unix and PHP3. The company has an internal Access Database that they have created and populated with every product they carry. I have already created the complete site on a test environment running IIS and using a system DSN. Unfortunately, earthlink has no support for databases whatsoever. So here is my question...
I tried connecting my php pages using a dsn-less connection, using the following.
<?
connect to a database
if (!$conn = new COM("ADODB.Connection"))
exit("Unable to create an ADODB connection<br>");
$strConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("..\perfdesign.mdb");
$conn->open($strConn);
?>
This results in the error message...
Fatal error: COM is not a class in db_connect.php3 on line 3
Is there any way to use Access databases with PHP3 under Apache on Unix?