在PHP中将命名管道直接重定向到stdout

在PHP中将命名管道直接重定向到stdout,php,pipe,ipc,Php,Pipe,Ipc,我想在写入另一个命名管道时,将命名管道()的内容重定向到stdout 服务器端PHP脚本中的以下场景: //Write some Text to STDOUT by PHP echo "Pre Text"; //Redirect the Content to stdout ... $handle = NON_BLOCKING_REDIRECT('/run/pipeXYZ',STDOUT); //..while writing to an other name pipe file_put

我想在写入另一个命名管道时,将命名管道()的内容重定向到stdout

服务器端PHP脚本中的以下场景:

//Write some Text to STDOUT by PHP
echo "Pre Text";  
//Redirect the  Content to stdout ...
$handle = NON_BLOCKING_REDIRECT('/run/pipeXYZ',STDOUT); 

//..while writing to an other name pipe
file_put_contents('/run/otherPipe','MyCommand');  

WAIT_UNTIL_FINISHED($handle);

//Write again some Text to STDOUT by PHP
echo "Post Text"; 

这可能吗?对于
非阻塞\u重定向,等待\u直到\u完成

那么,您想在并行读取另一个套接字的同时写入套接字吗?“命名管道”的意思是unix套接字?@RiWe看到我对FIFO的编辑了吗