Answer the question
In order to leave comments, you need to log in
How to run linux terminal command via php in browser?
I have a PHP script that calls a Python script in the terminal:
<?php
$output = shell_exec("python3 drel_on.py");
echo "<pre>$output</pre>";
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question