posix_mkfifo( $fifoPath , 0666)
if (!file_exists( $fifoPath )) posix_mkfifo( $fifoPath, 0600 );
$fifoPath = __DIR__ . '/1.fifo';
if (!file_exists($fifoPath)) {
print "User not active \n\n";
exit(0);
}
$fifo = fopen( $fifoPath, 'w' );
$data = "Richard Miles \n";
fwrite($fifo, $data, 1024);
echo "Done \n\n";