I need help on this x-x
assuming my php has 3 variables
<?php
$var1 = "1";
$var2 = "2";
$var3 = "3";
?>
So on the "exec" part im a bit stuck and confused, how do i pass those 3 variable into my python script, and how do i receive those 3 variables in my python script?
You just pass them as command line arguments:
Then in your Python script you can read them like this:
Btw:
sys.argv[0]
contains the name of your script, that is why you start with index1
.http://www.tutorialspoint.com/python/python_command_line_arguments.htm