Source for file dbdefs.inc.php
Documentation is available at dbdefs.inc.php
* MySQL Database Class - Database Definitions.
* @author Sascha 'SieGeL' Pfalz <php@saschapfalz.de>
* @version 0.38 (02-Oct-2009)
* $Id: dbdefs.inc.php,v 1.12 2009/10/02 18:15:53 siegel Exp $
* @license http://opensource.org/licenses/bsd-license.php BSD License
* Hostname/IP address of database server.
define('MYSQLDB_HOST' , 'localhost');
* Port number of database.
* Defaults to 3306 and should be given only if port differs.
//define('MYSQLDB_PORT' , 3306);
* Username to connect to database.
define('MYSQLDB_USER' , 'username');
* Password to authenticate.
define('MYSQLDB_PASS' , 'password');
* Database schema to use after connecting.
define('MYSQLDB_DATABASE' , 'database');
* Name of application using this class (used in error.log etc.).
define('MYSQLAPPNAME' , 'MySQL_class');
* Modify default error handling mode if you wish.
* Default is DBOF_SHOW_NO_ERRORS if you omit this parameter.
define('DB_ERRORMODE' , DBOF_SHOW_ALL_ERRORS);
* Set address to be shown in case of an error.
* If this is not set the default address of $_SERVER['SERVER_ADMIN'] is used.
define('MYSQLDB_ADMINEMAIL' , 'php@saschapfalz.de');
* Set this define to 1 if you want auto-emails to be sent whenever an
* error occures. Default is 0 (disabled).
define('MYSQLDB_SENTMAILONERROR', 0);
* You can define here additional parameters to be passed to the mail() call.
* Some servers may need the "-f enter@your.mail" parameter for example.
//define('MYSQLDB_MAIL_EXTRAARGS' , '-fwebmaster@yourdomain.com');
* 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).
define('MYSQLDB_USE_PCONNECT' , 1);
* 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:
* The class performs a "SET NAMES 'utf8';" query if you define i.e. 'utf8' as characterset.
define('MYSQLDB_CHARACTERSET' , 'utf8');
* 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.
define('MYSQLDB_TIME_NAMES' , 'de_DE');
* 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.
define('MYSQLDB_NEW_LINK' , FALSE);
Documentation generated on Sat, 07 Aug 2010 10:18:06 +0200 by phpDocumentor 1.4.3