Is it possible to run a PHP script using python?
You can look into the subprocess
class, more specifically, subprocess.call()
subprocess.call(*popenargs, **kwargs)
subprocess.call(["php", "path/to/script.php"]);
You can use the Python OS module. You can run any script by calling
os.system('php -f file.php')
The issue would be getting return values from PHP to Python here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With