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

javascript - Why Selenium can't find an element that is graphically visible -

java - How to compare two classes -

mysql - Gateway Timeout Error on Insert 70000 record using Hibernate in Java -