Posts by Caio Santos • 11 points
1 post
-
1
votes1
answer242
viewsQ: Calling PYTHON script through PHP
I want PHP to show the result of PYTHON code PYTHON x = 4 * 5 print(x) PHP <?php $teste = shell_exec('python codigopython.py 2>&1'); echo $teste; ?> The result I’m getting is: 'python'…