I'm trying to run a scrip from php by passing three parameters.The problem is that I can only pass the first parameters well.
code:
$asd=$name;
for($i=0;$i<count($checkbox);$i++){
$raid=$checkbox[$i];
$asd=$asd ." ". $raid;
}
$railvl1 = exec("sh /var/www/proyecto/borrarraid1.sh ".$asd);
$name has a string and $raid contains the checkbox array.
if I use vardump or die over $ asd it shows me the following.
string(15) "md2 sdc sdd "
my script has this:
mkdir $1
mkdir $2
mkdir $3
Only the md2 folder is created, the sdc folder is created by calling :sdd? and the last folder sdd is not created.
Any suggestions?