Compiling a C program that was entered into a textbox and received via PHP?
<p>I have this problem: I want to pass a whole C code from a php textbox onto server and want to compile it with gcc and want the output back on php page.  Is it possible?</p>

<p>Sample code:</p>

<pre><code>php page input
&lt;textarea&gt;
#include&lt;stdio.h&gt;
void main()
{
printf("hello world");
}
</code></pre>

<p>Compiled on server terminal/shell</p>

<p>php page output:</p>

<pre><code>hello world
</code></pre>
