PHP Classes

File: includes/config.php

Recommend this page to a friend!
  Classes of Johnny Mast   PHP MySQL WebSocket Chat   includes/config.php   Download  
File: includes/config.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: PHP MySQL WebSocket Chat
Websocket chat that stores messages in MySQL
Author: By
Last change: Update of includes/config.php
Date: 2 years ago
Size: 850 bytes
 

Contents

Class file image Download
<?php
/**
 * Config.php
 *
 * The main configuration file for mysql_websocket_chat
 *
 * PHP version 7
 *
 * @category Configuration
 * @package Mysql_Websocket_Chat
 * @author Johnny Mast <mastjohnny@gmail.com>
 * @license https://opensource.org/licenses/MIT MIT
 * @version GIT:1.4
 * @link https://github.com/johnnymast/mysql_websocket_chat
 * @since GIT:1.0
 */

date_default_timezone_set('EUROPE/AMSTERDAM');

define('DATABASE_HOST', 'localhost');
define('DATABASE_PORT', 3306);
define('DATABASE_USERNAME', 'root');
define('DATABASE_PASSWORD', 'root');
define('DATABASE_DB', 'socket_chat');
define('ENABLE_DATABASE', false);


/**
 * The host can either be an IP or a hostname
 * on this machine. The port is just the port
 * plain and simple.
 */
define('WEBSOCKET_SERVER_IP', '127.0.0.1');
define('WEBSOCKET_SERVER_PORT', '8080');