title: Writing to a pipe in linux using php
body: <p>I have created a pipe in linux <code>mkfifo /tmp/myFIFO</code> now i have set the chmod to 777.. then i have a c application which reads the pipe and output what i wrote to the pipe.</p>
  
  <p>When i do it this way in php and this works..</p>
  
  <pre><code>$command = "echo 'helloworld' &gt; myFIFO";
  $process = proc_open($command, $descriptor, $pipes, $cwd, $env);
  </code></pre>
  
  <p>but when i do it with fwrite e.g</p>
  
  <pre><code>$out = fopen("/tmp/myFIFO","w");
  fwrite($out,"hello");
  fclose($out);
  </code></pre>
  
  <p>It does not work at all. I'm not getting any output from my pipe in linux?..  Why is that fwrite is not working?.. thanks</p>