Adam Green
Twitter API Consultant
adam@140dev.com
781-879-2960
@140dev

Free Source Code – Twitter Database Server: db_config.php

The variables defined in db_config.php are used by db_lib.php to connect to the MySQL database. Note that these are memory variables, not constants as in 140dev_config.php. When db_config.php is loaded into db_lib.php, the variables are created within the scope of the db class constructor where they are used to connect to the database. This means that no other code in this framework can access these values, which adds a level of security to these valuable parameters. If these values had been created as constants, they would remain available to all other code run as part of this framework.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
* db_config.php
* MySQL connection parameters for 140dev Twitter database server
* Fill in these values for your database
* Latest copy of this code: http://140dev.com/free-twitter-api-source-code-library/
* @author Adam Green <140dev@gmail.com>
* @license GNU Public License
* @version BETA 0.30
*/
  $db_host = 'localhost';
  $db_user = '*****';
  $db_password = '*****';
  $db_name = '*****'; 
	
	// MySQL time zone setting to normalize dates
	define('TIME_ZONE','America/New_York');
?> 

streaming_framework