We\'re using Splunk (A tool to analyse machine data like log files) and have an application in PHP. For some data we need to do a call to our application in php (CLI-based). Unf
Using subprocess.call:
subprocess.call
import sys, subprocess sys.exit(subprocess.call(['php', sys.argv[0].replace('.py', '.php')] + sys.argv[1:]))
Edit: Made Python script return the value the PHP script returned.