Using shell_exec to run python script in a PHP file works when using localhost but not when put on the serverGet the solution ↓↓↓
I am quite new to web development and have been trying to run some Python code via a PHP script. When working on my localhost, shell_exec works great. However, when putting it on the server (Hostinger), the Python script does not work.
I thought this might be the case because on the localhost it uses the Python installed on my computer, but I am not sure what is the best way around this.
Share solution ↓
Link To Answer People are also looking for solutions of the problem: invalid argument supplied for foreach() laravel
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.