1

So I have been trying to turn on some lights using this code exec("python /var/www/html/scripts/lights/lampon.py");. When I run it directly in the terminal it works, but when I try to run this through my page, it dosen't do anything. Even when I run the code above through php -a it works... So I do not know what the problem is. If anyone has an answer to this it would be great. I've tried almost everything but nothing works. Thanks in advance.

0 Answers0