File "exectute_pyton02.php"
Full Path: /home/analogde/www/Administratif/FTP/Monsta-FTP-master/exectute_pyton02.php
File size: 269 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
// script.php
// Commande pour exécuter le script Python
$pythonScript = "python3 script02.py 'Hello depuis PHP'";
// Exécute le script Python et récupère la sortie
$output = shell_exec($pythonScript);
// Affiche le résultat
echo "<pre>$output</pre>";
?>