docs
[mirrors/Programs.git] / php / skripty / cmd.php
1 <?php
2
3 function readline() {
4 $fp = fopen("php://stdin","r");
5 $line = fgets($fp, 1000);
6 fclose($fp);
7 return $line;
8 }
9
10 while(1){
11 print ("\nHARVIE's CMDLine:\n");
12 $cmd = ("");
13 $cmd = trim(readline());
14 if ( $cmd != "" ){
15 system ($cmd);
16 } else {
17 while(1){
18 $cmd = trim(readline());
19 }
20 }
21 }
22
23 ?>
This page took 0.313784 seconds and 4 git commands to generate.