gearman-go/example/exec-worker/script/default.php
2012-11-22 17:15:20 +08:00

9 lines
187 B
PHP

<?php
define('ISCLI', PHP_SAPI === 'cli');
if (!ISCLI) {
die("cli only!");
}
define("ROOT", dirname(__FILE__));
define("LIB", ROOT . "/../lib/");
include_once(LIB . "bootstrap.php");