Quantcast
Channel: Running a Python script from PHP - Stack Overflow
Viewing all articles
Browse latest Browse all 12

Answer by Punnerud for Running a Python script from PHP

$
0
0

Inspired by Alejandro Quiroz:

<?php $command = escapeshellcmd('python test.py');$output = shell_exec($command);echo $output;?>

Need to add Python, and don't need the path.


Viewing all articles
Browse latest Browse all 12

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>