Created
August 9, 2018 19:56
-
-
Save lucasmaurice/591f5054abca01c5feaca6d3804d99ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
echo "<p>Hello World</p>"; | |
$param = "123"; | |
$command = escapeshellcmd("python3 ./test.py ".$param); | |
$output = shell_exec($command); | |
echo $output; |
This file contains hidden or 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
#!/usr/bin/python3 | |
import sys | |
print ('Number of arguments:', len(sys.argv), 'arguments.') | |
print ('Argument List:', str(sys.argv)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment