Source for file dbdefs.inc.php

Documentation is available at dbdefs.inc.php

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

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