php run python script
$r=shell_exec("python3 mypythonscript.py");
echo $r;//will be out put of .py script
php run python script
$r=shell_exec("python3 mypythonscript.py");
echo $r;//will be out put of .py script
php import python script
#excute python file named test.py
<?php
$command = escapeshellcmd('python test.py');
$output = shell_exec($command);
echo $output;
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us