Created
June 28, 2020 03:22
-
-
Save ashleyconnor/9d2f0ff16b9e7423eddef927af6a2264 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> echo.py | |
print("Hello World") | |
> echo.php | |
<?php | |
$command = escapeshellcmd('python echo.py'); | |
$output = shell_exec($command); | |
echo $output; | |
?> | |
$ php echo.php | |
Hello World |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment