title: Serving a C program via PHP without writing/uploading previlige
body: <p>I need to host a C program on a website. The program takes arguments of the location of a file, calculate, and outputs another file with a slightly different name.
  Namely</p>
  
  <pre><code>&gt; a.exe ../input.txt
  </code></pre>
  
  <p>will generate another file</p>
  
  <pre><code>../input.txt.out.txt
  </code></pre>
  
  <p>Both files will be small (less than 10KB). Now when I put it onto the server, I found that uploading or generating files has been disabled on this server.</p>
  
  <p>What I want to ask is, is there a way to pass php stream as files to the C program and make it write to a stream that it thinks as a file, so that no file is actually created on the server? At the end of the day I do not need to keep those files, but just to serve the output as text in the browser.</p>
  
  <p>p.s.: I am aware of php://temp and php://memory, but they cannot be passed to C program as if they are files.
  p.s.2: I am not sure whether this is more a C question or php question. Can C takes stream as input instead of files?</p>