I am running the exec command in PHP. I need to pass the variables along with it.
exec(sh myfilename.sh);
how can i pass variables to the above command ?
I am running the exec command in PHP. I need to pass the variables along with it.
exec(sh myfilename.sh);
how can i pass variables to the above command ?
$v1="abc=cde";
$v2="fgh=ijk";
$v3="lmn=opq";
exec("sh myfilename.sh $v1 $v2 $v3");