Example #1
0
<?php

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../functions.php';
setEnv(require_once __DIR__ . "/../env.php");
define('YII_ENV', 'test');
defined('YII_DEBUG') or define('YII_DEBUG', true);
require_once __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
Example #2
0
<?php

$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 0);
ini_set('log_errors', 1);
ini_set('error_log', '/var/log/httpd/ssp/php-error.log');
set_time_limit(0);
ini_set('memory_limit', '256M');
$PROFILER_ENABLED = 0;
$USE_POST_PROCESS = 0;
$USE_CACHE_HEADERS = 0;
$INIT_MENU = 0;
//$USE_EXCEPTION_HANDLERS	= 0;
require_once dirname(__FILE__) . "/../init.php";
setEnv();
//MC('Permission')->disable();
//M('Db')->traceOn();
//M('Event')->traceOn();
M('Scheduler')->traceOn();
M("Scheduler")->process($argv[2]);
//MC('Permission')->enable();