Penso sia la foreach ad essere sbagliata. Cosa vuoi fare con questa parte di codice?
Prova in questo modo:Codice PHP:
foreach(explode(',', $argv[1]) as $call)
{
$actionid = md5(time().$call);
shell_exec("php startcall.php {$call} {$actionid}");
}
Per curiosità, cos'hai dentro $argv[1]?Codice PHP:
$array = explode(',', $argv[1]);
foreach($array as $call)
{
$actionid = md5(time().$call);
shell_exec("php startcall.php {$call} {$actionid}");
}