Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - How do I configure PHP db_connect.php?
  FAQ FAQ  Forum Search   Register Register  Login Login

How do I configure PHP db_connect.php?

 Post Reply Post Reply
Author
Thermo View Drop Down
Newbie
Newbie


Joined: 10 July 2006
Location: Canada
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Thermo Quote  Post ReplyReply Direct Link To This Post Topic: How do I configure PHP db_connect.php?
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.322 seconds.