Supplying input for Python from PHP
<p>I want to send data from PHP to Python. I have this PHP code:</p>

<pre><code>shell_exec ("sudo python /python/ba10e.py &gt;/dev/null 2&gt;&amp;1 &amp;");
</code></pre>

<p>Sending data to Python works, but when the Python program asks for input:</p>

<blockquote>
  <p>The money that you input is incorrect, you want to continue?</p>
</blockquote>

<p>There are two choices, "Y" and "N", but how am I going to be able to send commands to Python, such as "Y"? Is it possible to do this?</p>