I guess I got stuck on the dynamic variable bit. Still not sure what you are trying to do and why everything from $this->cmd isn't in it's own python script. then exec("/path/to/sage -c thiscmd.py .$arg1 .$arg2");
just seems weird that all the python code is being passed through php in the...
Why isn't PHP just accepting the dynamic variables and passing it to the Python script with exec? They both use the same implementation of argv
<?php
$foo = 'var1';
$bar = 'var2';
$run = exec("python script.py .$foo .$bar");
echo $run;
I haven't used Sage but I guess if it's a binary on the...