Print Page | Close Window

How do I configure PHP db_connect.php?

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6272
Printed Date: 05 February 2025 at 1:51am


Topic: How do I configure PHP db_connect.php?
Posted By: Thermo
Subject: How do I configure PHP db_connect.php?
Date 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



Print Page | Close Window