QuickTalk

Annexe 1: Configuration file

The configuration file contains the mandatory parametres allowing you to connect your database. The file config.php created by the installation procedure is stored in the bin directory.

Exemple for MySQL

<?php
$qtg_dbsystem = "mysql";
$qtg_host = "localhost";
$qtg_port = "";
$qtg_dsn = "";
$qtg_database = "quicktalk";
$qtg_prefix = "";
$qtg_user = "quicktalk_dbo";
$qtg_pwd = "dbomasterkey";
$qtg_install = "2007-07-16";
?>

  • qtg_dbsystem defines the database type you will use. Possible values are (in lower case!):
    • mysql for MySQL 4.1 or above
    • mssql for SQL Server 2000 or above
    • pg for PostgreSQL 7.x or above
    • oci for Oracle 9 or above
    • ibase for InterBase Firebird 2.0 or above
    • sqlite for SQLite 3.0 or above
    • db2 for IBM DB2
    • access for MS Access 97 or above (via odbc)
  • qtg_host defines the name of the database server. In most cases (when your database server is on the same hardware that your webserver), this will be localhost
  • qtg_database defines the name of your database. For Oracle express use: //localhost/XE
  • qtg_port is the host port to connect the database. In most case, you must let it empty. If you use PostgreSQL it's usually 5432 .
  • qtg_dsn is the Database System Name (odbc name) allowing to connect the database via odbc. Let it empty unless you use Microsoft Access database or if you don't have the php specific resources. If a DSN is defined, database name and port will be useless.
  • qtg_prefix defines the prefix of the tables in your database. This is used if you plan to have serveral QuickTalk applications on the same database
  • qtg_user is the user in your database. This user must be granted to select, insert, delete, update.
  • qtg_pwd is the user's password.
  • qtg_install is the installation date.
  • Important

    If you edit your configuration file manually, don't forget to add the variable qtg_install and assigne it the date value. Without this variable, your board will return to the installation wizard and ask you to save your configuration file again.

    Previous | Next