I want to access my GPIO pins of my raspberry pi from my PHP server
I have the python script that switches on and off the LED lights
How can I run my python script from my php? It gives me no error and it doesn't access the pins
I understand that with sudo the password is required.
<?php echo "Query for:"; echo $gpio; exec("sudo python rungpio.py"); ?>
https://stackoverflow.com/questions/31811253/execute-python-script-from-php The above link doesn't help much. Kindly help