I have 5 python programs in my raspberry pi. I have installed LAMP Server in raspberry pi.
Now I would like to make a web page and execute those program.
Is there any way to execute them and display the output on the web browser?
I have 5 python programs in my raspberry pi. I have installed LAMP Server in raspberry pi.
Now I would like to make a web page and execute those program.
Is there any way to execute them and display the output on the web browser?
You can execute like so:
$command = escapeshellcmd('/usr/custom/test.py');
$output = shell_exec($command);
echo $output;
There is further information Running a python script from PHP
You can then make a simple page with buttons that executes the relevant scripts.