note 22801 modified in function.popen by danbrown

From: Date: Mon, 02 Mar 2009 13:42:05 +0000
Subject: note 22801 modified in function.popen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151340@lists.php.net to get a copy of this message
The below code works for both way processing ;) Have fun folks <?php system("mkfifo pipeout"); $pipe = popen("./nwserver -module Chapter1E > pipeout","w"); $pipeout = fopen("pipeout", "r"); while ($s = fgets($pipeout,1024)) { echo $s; } ?> --was-- The below code works for both way processing ;) Have fun folks <? system("mkfifo pipeout"); $pipe = popen("./nwserver -module Chapter1E > pipeout","w"); $pipeout = fopen("pipeout", "r"); while ($s = fgets($pipeout,1024)) { echo $s; } ?> http://php.net/manual/en/function.popen.php

« previous php.notes (#151340) next »