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
Post a Comment