title: How to record audio or video in a browser and store it in my server's database?
body: <p>I need to record audio from a user and store it in my local server's database. I tried this, but it didn't work.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt; 
  &lt;body&gt;
  &lt;?php
  if(isset($_POST[submit1]))
  {
  echo exec("ffmpeg -f alsa -ac 2 -i pulse  -acodec pcm_s16le -vcodec libx264 -vpre      lossless_ultrafast -threads 0  -y  ./Desktop/myVOICE1.wav");
  }
  ?&gt;
  &lt;form name="form1" method="POST" action="sample.php"&gt;
  
  &lt;input type="Text"  name="username"&gt;
  &lt;input type="submit" name="submit1" value="go"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>May i know wats wrong wit my code and why doesnt it work?</p>
  
  <p>What should I do?</p>