Re: Console Behavior
| From: | Rasmus Lerdorf | Date: | Thu, 31 Oct 2002 15:30:26 +0000 |
| Subject: | Re: Console Behavior | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90382@lists.php.net to get a copy of this message | ||
Running your code here gives me:
8:27am thinkpad:~> ./foo
Attach code? > 12345
12345
8:27am thinkpad:~>
Seems to work fine.
-Rasmus
On 31 Oct 2002, Adam Voigt wrote:
> Now I have this, same behavior as before, maybe I'm using the flush
> function incorrectly but the manual seems to suggest this
> is the way to use it:
>
> #!/usr/local/php_4.2.3/bin/php -q
> <?php
>
> error_reporting(E_ALL);
>
> echo "\n\nAttach code? > ";
>
> flush();
>
> $f = fopen("php://stdin","r");
> $data = fread($f,5);
> fclose($f);
>
> echo "\n\n$data\n\n";
>
> ?>
>
> On Thu, 2002-10-31 at 10:21, Rasmus Lerdorf wrote:
> > flush()
> >
>