title: run c program using php
body: <p>how to run c program using php <code>exec()</code>
  i have seen many results from google search 
  it is possible by exec() function
  but i am  unable to use it
  i tried in this way
  i wrote a program in c </p>
  
  <pre><code>**myc.c**
  #include &lt;stdio.h&gt;
  
  int main(int argc, char *argv[])
  {
      printf("Hello, world\n");
  
      return 0;
  }
  
  **test.php**
  &lt;?php
  exec('myc.c');
  ?&gt;
  </code></pre>
  
  <p>can any one help me pls in this regard
  i executed this through wamp server by placing in www folder</p>