php://stdin
php://stdout
php://stderr
are also for console input/output...
> -Original Message-
> From: Richard Lynch [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] I want to get the input of keyboard
>
> $file = fopen('php://input', 'r');
>
> I want to get the input of keyboard from php files,but i can't know how
to
> do.
>
> Who can tell me any advace about that?
If you want the input from the keyboard on the web-server machine (not the
client) you can use:
$file = fopen('php://input', 'r');
$char = fread($file, 1);
If you want
something like that
""little boy"" <[EMAIL PROTECTED]> wrote in message
9h90pi$3ag$[EMAIL PROTECTED]">news:9h90pi$3ag$[EMAIL PROTECTED]...
> hi,all
> I want to get the input of keyboard from php files,but i can't know how
to
> do.
>
> Who can tell me any advace about that?
> Thx.
>
>
>
>
""little boy"" <[EMAIL PROTECTED]> wrote in message
9h90pi$3ag$[EMAIL PROTECTED]">news:9h90pi$3ag$[EMAIL PROTECTED]...
> hi,all
> I want to get the input of keyboard from php files,but i can't know how
to
> do.
>
> Who can tell me any advace about that?
> Thx.
If you're running PHP as a server-
4 matches
Mail list logo