3 Réponses
0
<?php
$output = '';
// If the first line of your python script
//contains a Shebang, you can ommit
// /path/to/python
exec('/path/to/python /path/to/script.py', $output);
// Script output will be stored in $output
echo $output;
// Displays the output of your python script
?>
0
I will try this. thank you. what if I want to give command to run python script to button created on php?
0
it's not working.