I'm having a weird issue with a simple php script which execute a python program passing it one parameter. Here below is the script.php:
<?php
$t = $_GET['t'];
system("python /var/www/html/ledcontrol.py " . $t);
?>
When loading this script from Chrome Mobile with t=5 (/file.php?t=5) the python program is always executed two times in a row: in the Apache access log I find two accesses with different IPs. Instead, if I set t to a different value, or use different browsers, the script runs perfectly. How can the value of t=5 affect the behavior of this simple script? How can I fix it?
Thank you very much!