I have the following Python code (test.py) :
name = input("What's your name? ")
print("Nice to meet you " + name + "!")
age = input("Your age? ")
print("So, you are already " + str(age) + " years old, " + name + "!")
and I try to execute it with PHP :
exec('"C:\python.exe" test.py', $output);
print_r($output);
But there are two input in the Python code. How can I sent the data asked by the input and continue the code execution ?