Level 73
You can use escapeshellarg()
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i want to run python command in php. example
freqtrade backtesting --strategy AwesomeStrategy --dry-run-wallet 1000
how can run. i know python file running as follow
<?php
$command_exec = escapeshellcmd('path-to-.py-file');
$str_output = shell_exec($command_exec);
echo $str_output;
?>
how can add command line in escapshellcmd() with path to python file.
You can use escapeshellarg()
Please or to participate in this conversation.