Source for file dbdefs.inc.php
Documentation is available at dbdefs.inc.php
* MySQL Database Class - Database Definitions.
* Fill in access data to a MySQL database to let the examples working!
* @author Sascha 'SieGeL' Pfalz <php@saschapfalz.de>
* @version 0.36 (21-Sep-2008)
* $Id: dbdefs.inc.php,v 1.5 2008/11/29 12:33:00 siegel Exp $
* @license http://opensource.org/licenses/bsd-license.php BSD License
* Hostname/IP address of target database to use.
define('MYSQLDB_HOST' , "localhost");
* Port number of database.
* Defaults to 3306 and should be given only if port differs.
//define('MYSQLDB_PORT' , 3306);
* Username for target database to use.
define('MYSQLDB_USER' , "siegel");
* Password for target database to use.
define('MYSQLDB_PASS' , "siegel");
define('MYSQLDB_DATABASE', "siegel");
* Name of application using this class (used in error.log etc.).
define('MYSQLAPPNAME' , "MySQL_class_Examples");
* Modify default error handling mode if you wish (V0.28+).
* 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 (V0.31+).
* 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');
Documentation generated on Sat, 07 Aug 2010 10:18:05 +0200 by phpDocumentor 1.4.3