示例#1
0
文件: server.php 项目: ansendu/ansio
<?php

/**
 * User: ansen.du
 * Date: 15-11-26
 */
use ANSIO\ANSIO;
$rootPath = dirname(__DIR__);
//require dirname($rootPath) . '/lib/ANSIO/ANSIO.php';
require $rootPath . '/lib/ANSIO/ANSIO.php';
ANSIO::run($rootPath);
示例#2
0
文件: config.php 项目: ansendu/ansio
<?php

use ANSIO\ANSIO;
$config = array('time_zone' => 'Asia/Shanghai', 'debug_mode' => 1, 'memory_limit' => "500M", 'socket_server_class' => "socket\\server\\demo", 'host' => '0.0.0.0', 'port' => '9999');
$publicConfig = array('mysql.php');
foreach ($publicConfig as $file) {
    $file = ANSIO::getConfigPath() . DS . $file;
    $config += (include "{$file}");
}
return $config;