static function output($string) { if (!self::$out) { self::$out = fopen('php://stdout', 'w'); } return fwrite(self::$out, $string); }
if (!empty($_GET["v"])) { $array['view'] = $_GET["v"]; } if (!empty($_GET['mvc'])) { $request = explode('/', $_GET['mvc'], 3); if (count($request) !== 3) { Error::info('URL Error', "HTTP 404!Page Not Found!<P>Error request:<B>{$_SERVER['REQUEST_URI']}</B>"); } $array['controller'] = $request[1]; $array['view'] = $request[2]; } return $array; } } while (1) { $cmd = Stdio::input('php>'); if ($cmd[0] === "\\") { $cmd = substr($cmd, 1); $args = Console::getOpt($cmd); switch ($args['args'][0]) { case 'q': case 'quit': echo 'exit console', NL; break 2; case 'r': case 'reload': require_ext('runkit'); //runkit_import(); //runkit_import(); case 'e': case 'exec':