<?php
print_r($_REQUEST);
print_r($_REQUEST['arr']);
$var0=$_REQUEST['data']['FIELDS_BEFORE']['ID'];
$var1=$_REQUEST['arr']['data']['FIELDS_BEFORE']['ID'];
echo "var0 = $var0";
echo "var1 = $var1";
$cmd="test.sh $var1";
$output=array();
exec($cmd,$output,$return);
?>
/test.php?arr[event]=ONTASKUPDATE&arr[data][FIELDS_BEFORE][ID]=12345&arr[data][FIELDS_AFTER][ID]=78900
Вывод print_r($_REQUEST)
Array
(
[arr] => Array
(
[event] => ONTASKUPDATE
[data] => Array
(
[FIELDS_BEFORE] => Array
(
[ID] => 12345
)
[FIELDS_AFTER] => Array
(
[ID] => 78900
)
)
)
)
Вывод print_r($_REQUEST['arr'])
Array
(
[event] => ONTASKUPDATE
[data] => Array
(
[FIELDS_BEFORE] => Array
(
[ID] => 12345
)
[FIELDS_AFTER] => Array
(
[ID] => 78900
)
)
)
var0 =
var1 = 12345
/var/www/mytools/test.sh 12345
покажите вывод команды:
ip firewall filter print chain=customer