Quantcast
Channel: Running a Python script from PHP - Stack Overflow
Viewing all articles
Browse latest Browse all 12

Answer by Gerald Joshua for Running a Python script from PHP

$
0
0

This is so trivial, but just wanted to help anyone who already followed along Alejandro's suggestion but encountered this error:

sh: blabla.py: command not found

If anyone encountered that error, then a little change needs to be made to the php file by Alejandro:

$command = escapeshellcmd('python blabla.py');

Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>