How do I configure PHP db_connect.php? |
Post Reply |
Author | |
Thermo
Newbie Joined: 10 July 2006 Location: Canada Status: Offline Points: 25 |
Post Options
Thanks(0)
Posted: 22 October 2007 at 3:16pm |
I am currently using the default MS Access db for quarantined emails, I am trying to switch over to a MySQL db. I downloaded and installed MySQL server, MySQL ODBC driver and the MySQL GUI admin software all on the same server as SpamFilter ISP. I have a database setup per the help file and Spamfilter can connect to it, I let it run for 5 minutes for testing and there are now 15 quarantined emails stored in the MySQL db. The email server (Icewarp Merak) also runs on this server with PHP installed so I thought I could tie all this together.
I don't know what to put in the db_connect.php file. Do I create a new user in the MySQL SpamFilter db for the php connection? <?php require_once('DB.php'); $db = DB::connect("mssql://user:password@myserver.mydomain.com/SpamFilter", array('persistent' => 1)); if (DB::iserror($db)) die($db->getMessage()); ?> Can someone help me out? Thanks |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.322 seconds.