I have the php page which lists the backups with filename and username.
the backups are done with python script but for web interface I used php.
Now I want to put the facility on webpage where there will be button called restore next to backup file name and all the home dir contents are replaced.
I can make the python function with parameters like backup filename , username and it restores the backup.
But I don’t know how can I pass variables to python via php
Yes you can call
exec("python pythonscript.py someparams");or if you need to save the output to a variable use this codeMore informaiton: call python script by php and solve errors