mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
myvesta-php-func support for stdin
This commit is contained in:
parent
77467eeebd
commit
4dd6d22f07
4 changed files with 126 additions and 6 deletions
|
@ -7,6 +7,14 @@ else $SHLVL=3;
|
|||
|
||||
if (!isset($argv)) exit(5);
|
||||
|
||||
stream_set_blocking(STDIN, false);
|
||||
$myvesta_stdin='';
|
||||
$myvesta_f = fopen( 'php://stdin', 'r' );
|
||||
while( $myvesta_line = fgets( $myvesta_f ) ) {
|
||||
$myvesta_stdin .= $myvesta_line;
|
||||
}
|
||||
fclose( $myvesta_f );
|
||||
|
||||
include ("/usr/local/vesta/func/main.php");
|
||||
include ("/usr/local/vesta/func/string.php");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue