Пн янв 16, 2023 8:43 am Пн янв 16, 2023 8:43 am
<?php
$host = '172.20.1.1';
$portWEB = '8080';
$typeOfConnection = 'http';
$integrationAPIKey = 'iddqd';
$cmd = '0002';
$userTo = '3';
$userFrom = '0';
//$msg = $_GET['msg'];
$toolName = 'php';
$json = json_encode(array('cmd'=>$cmd, 'UserTo' =>$userTo, 'UserFrom' =>$userFrom, 'Msg'=>"f6f79e5ccf8cc2457282dcb6aa0a6dce16df882f\r\n/storage/tmp/mychat/test.txt\r\n36201701.737550\r\n15", 'APIStype'=>$toolName, 'ServerKey'=>$integrationAPIKey,'MsgType'=>23));
$json = urlencode($json);
$URL = $typeOfConnection.'://'.$host.':'.$portWEB.'/API/?data=' . $json;
$s=file_get_contents($URL);
echo $s;
?>
вот пример кода. Подскажите, что я делаю не так? единственная проблема, как зашифрована дата изменения файла? на unix date не похоже..