in this video will show you how to run a script.py from php using shell_exec() ..
when it trying to run shell_exec('script.py') .. it doesn't work ..
i'm searching for the solution from google.com .. and i got it ..
The solution is .. change the owner of script.py from user:user to user:www-data ..
PHP need permission to execute shell_exec('script.py') from www-data (apache)
Негізгі бет PHP tutorial : run Python from PHP in Ubuntu
Пікірлер: 16