Python script executing by PHP
<p>I've got a question. I'm gonna make few charts on my website, but I would like to have all the time fresh data.</p>

<p>I've got a TXT file: <code>temperature.txt</code><br>
It's getting information every 1 minute about temperature. Now, I would like to make a chart for example "Temperature in last hour". I would like to make HTML/PHP page to show me a chart.</p>

<p><strong>What's my problem?</strong><br>
I would like to use python script to:<br>
Get last 60 lines from <code>temperature.txt</code> and save them as <code>Temperature1Hour.txt</code> in my <code>/htdocs/</code> folder.</p>

<p>And I don't know how to write PHP script to execute my Python script. It's server-based only, client will click a button on site and everything will execute on server.</p>

<p>Is it possible? If yes, How? Is there any php function to start python script?</p>
