/dbdefs.inc.php

Description

MySQL Database Class - Database Definitions.

Constants
DB_ERRORMODE = DBOF_SHOW_ALL_ERRORS (line 48)

Modify default error handling mode if you wish.

Default is DBOF_SHOW_NO_ERRORS if you omit this parameter.

  • since: 0.28
MYSQLAPPNAME = 'MySQL_class' (line 41)

Name of application using this class (used in error.log etc.).

MYSQLDB_ADMINEMAIL = 'php@saschapfalz.de' (line 55)

Set address to be shown in case of an error.

If this is not set the default address of $_SERVER['SERVER_ADMIN'] is used.

  • since: 0.31
MYSQLDB_CHARACTERSET = 'utf8' (line 85)

You can set here the character set used when connecting.

This is only performed if this define is set, else no specific character set is set. To get a list of all supported character sets connect to MySQL and issue the following: SHOW CHARACTER SET; The class performs a "SET NAMES 'utf8';" query if you define i.e. 'utf8' as characterset.

  • since: 0.36
MYSQLDB_DATABASE = 'database' (line 36)

Database schema to use after connecting.

MYSQLDB_HOST = 'localhost' (line 15)

Hostname/IP address of database server.

MYSQLDB_NEW_LINK = FALSE (line 101)

If you need NEW connections when supplying identical credentials but using a different DB on the same server, set this define to TRUE. Default value is FALSE, this is also used by all previous releases of this class.

  • since: 0.38
MYSQLDB_PASS = 'password' (line 31)

Password to authenticate.

MYSQLDB_SENTMAILONERROR = 0 (line 61)

Set this define to 1 if you want auto-emails to be sent whenever an error occures. Default is 0 (disabled).

MYSQLDB_TIME_NAMES = 'de_DE' (line 94)

To have Day and month names returned in a specific locale, define here a valid countrycode.

Note that this is supported since MySQL 5.0.25 (see http://dev.mysql.com/doc/refman/5.0/en/locale-support.html) If you do not define this value, the class does not set any lc_time_names at all. If a define is given the class performs a "SET lc_time_names = 'de_DE';" query to enable german locale.

  • since: 0.36
MYSQLDB_USER = 'username' (line 26)

Username to connect to database.

MYSQLDB_USE_PCONNECT = 1 (line 75)

Set this define to 1 if you want to use persistant connections as default connection.

Default is 0, which means that mysql_connect is used instead. (new connections).

  • since: 0.35

Documentation generated on Sat, 07 Aug 2010 10:18:05 +0200 by phpDocumentor 1.4.3