php - How to upload and access a Python script in cPanel? -


i have python file, automation script github. want script executed php page.

for example, have index.php page, , has button saying start script. upon clicking button, python script, instabot.py, should executed. possible in cpanel? web host hostgator.

using information another stackoverflow post, might wanna use exec() run python script php. like:

exec('python /path/to/file/instabot.py'); 

according hostgator's documentation, python scripts should have permissions set @ 755.

uploading python scripts same uploading file web host, through use of ftp or cpanel itself.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -