> I have a php page that has buttons to start a PIR sensor and one to stop it.?

I have a php page that has buttons to start a PIR sensor and one to stop it.?

Posted at: 2014-12-18 
idea buddy

Ie button 1 turns on the PIR sensor by running the sensor.py script.

I have a button 2 that touches a stop-script file that the sensor.py , on detection exits.

The only problem is that when I press button 1, and run the sensor.py script, I'm unable to press the second button on the same page as the first script is continuously running on the page.

How would I resolve this ? Ie Able to press button two while sensor.py is running.