Source for file dbdefs.inc.php

Documentation is available at dbdefs.inc.php

  1. <?php
  2. /**
  3.  * MySQL Database Class - Database Definitions.
  4.  *
  5.  * @author Sascha 'SieGeL' Pfalz <php@saschapfalz.de>
  6.  * @package db_MySQL
  7.  * @version 0.38 (02-Oct-2009)
  8.  *  $Id: dbdefs.inc.php,v 1.12 2009/10/02 18:15:53 siegel Exp $
  9.  * @license http://opensource.org/licenses/bsd-license.php BSD License
  10.  */
  11.  
  12. /**
  13.  * Hostname/IP address of database server.
  14.  */
  15. define('MYSQLDB_HOST'           'localhost');
  16.  
  17. /**
  18.  * Port number of database.
  19.  * Defaults to 3306 and should be given only if port differs.
  20.  */
  21. //define('MYSQLDB_PORT'           , 3306);
  22.  
  23. /**
  24.  * Username to connect to database.
  25.  */
  26. define('MYSQLDB_USER'           'username');
  27.  
  28. /**
  29.  * Password to authenticate.
  30.  */
  31. define('MYSQLDB_PASS'           'password');
  32.  
  33. /**
  34.  * Database schema to use after connecting.
  35.  */
  36. define('MYSQLDB_DATABASE'       'database');
  37.  
  38. /**
  39.  * Name of application using this class (used in error.log etc.).
  40.  */
  41. define('MYSQLAPPNAME'           'MySQL_class');
  42.  
  43. /**
  44.  * Modify default error handling mode if you wish.
  45.  * Default is DBOF_SHOW_NO_ERRORS if you omit this parameter.
  46.  * @since 0.28
  47.  */
  48. define('DB_ERRORMODE'           DBOF_SHOW_ALL_ERRORS);
  49.  
  50. /**
  51.  * Set address to be shown in case of an error.
  52.  * If this is not set the default address of $_SERVER['SERVER_ADMIN'] is used.
  53.  * @since 0.31
  54.  */
  55. define('MYSQLDB_ADMINEMAIL'     'php@saschapfalz.de');
  56.  
  57. /**
  58.  * Set this define to 1 if you want auto-emails to be sent whenever an
  59.  * error occures. Default is 0 (disabled).
  60.  */
  61. define('MYSQLDB_SENTMAILONERROR'0);
  62.  
  63. /**
  64.  * You can define here additional parameters to be passed to the mail() call.
  65.  * Some servers may need the "-f enter@your.mail" parameter for example.
  66.  * Default is unset.
  67.  */
  68. //define('MYSQLDB_MAIL_EXTRAARGS' , '-fwebmaster@yourdomain.com');
  69.  
  70. /**
  71.  * Set this define to 1 if you want to use persistant connections as default connection.
  72.  * Default is 0, which means that mysql_connect is used instead. (new connections).
  73.  * @since 0.35
  74.  */
  75. define('MYSQLDB_USE_PCONNECT'   1);
  76.  
  77. /**
  78.  * You can set here the character set used when connecting.
  79.  * This is only performed if this define is set, else no specific character set is set.
  80.  * To get a list of all supported character sets connect to MySQL and issue the following:
  81.  * SHOW CHARACTER SET;
  82.  * The class performs a "SET NAMES 'utf8';" query if you define i.e. 'utf8' as characterset.
  83.  * @since 0.36
  84.  */
  85. define('MYSQLDB_CHARACTERSET'   'utf8');
  86.  
  87. /**
  88.  * To have Day and month names returned in a specific locale, define here a valid countrycode.
  89.  * Note that this is supported since MySQL 5.0.25 (see http://dev.mysql.com/doc/refman/5.0/en/locale-support.html)
  90.  * If you do not define this value, the class does not set any lc_time_names at all.
  91.  * If a define is given the class performs a "SET lc_time_names = 'de_DE';" query to enable german locale.
  92.  * @since 0.36
  93.  */
  94. define('MYSQLDB_TIME_NAMES'     'de_DE');
  95.  
  96. /**
  97.  * If you need NEW connections when supplying identical credentials but using a different DB on the same server,
  98.  * set this define to TRUE. Default value is FALSE, this is also used by all previous releases of this class.
  99.  * @since 0.38
  100.  */
  101. define('MYSQLDB_NEW_LINK'       FALSE);
  102. ?>

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