Re: Console Behavior

From: Date: Thu, 31 Oct 2002 15:45:10 +0000
Subject: Re: Console Behavior
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-90383@lists.php.net to get a copy of this message
You are correct, I tried it on an identical system and it worked. But it still refuses to work on my other system. They both run RH8 with PHP 4.2.3, the only difference (that I can see) is that I'm connecting to the box it doesn't work on through SSH, I don't have a third box from which to test this theory handy but it might have something to do with OpenSSH's buffering of data or something, hmmm. Anyway, thanks for helping me out, I would have been banging my head against the wall all day had I not discovered this discrepancy. Adam Voigt adam.voigt@cryptocomm.com On Thu, 2002-10-31 at 10:30, Rasmus Lerdorf wrote: > 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() > > > > > >

« previous php.dev (#90383) next »