i am working on the project and i try to pass the variable from php to python to execute the python code but it does not show anything. then i lookup some source in the internet and copy the same exactly but it does not show anything
my test.php
<?php
$data = 'hello';
$output = shell_exec("python3 /Applications/XAMPP/xamppfiles/htdocs/project/test.py " . $data);
?>
my test.py
import sys
result = sys.argv[1]
print (result)