I want to call an external php script that generates docx files with one of the docx php document creator I'm using.
I'm wondering if I should use exec('/path/to/script.php $pass_var1 $pass_var2 $pass_var3 $pass_var4 $pass_var5 $pass_var6');
or
system('/path/to/script.php $pass_var1 $pass_var2 $pass_var3 $pass_var4 $pass_var5 $pass_var6');
will it pass in the $pass_var1 into the script.php as $pass_var1? if I were to call it in the script? which one would be a better function to use for this purpose?