console

display($input = ”)

4: 	function display($input = '') {
6: 		$this->include_application_models();
7:
9: 		while (true) {
10: 			ob_start();
11: 			fwrite(STDOUT, "> ");
12: 			$input = trim(fgets(STDIN));
13: 			if ($input == 'quit' || $input == 'exit' || feof(STDIN)) {
14: 				break;
15: 			}
16: 			eval($input . ';');
17: 			$content = ob_get_contents();
18: 			ob_end_clean();
19: 			print !empty ($content) ? $content . "n" : '';
20: 		}
21: 	}

File: lib/support/console.php, #line 4

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>