Пн янв 22, 2018 4:26 pm Пн янв 22, 2018 4:26 pm
<?php
$host = 'адрес сервера';
$portWEB = '8080';
$typeOfConnection = 'http';
$ServerKey = 'ключ';
$cmd = '0004';
$UID = '1';
$userFrom = '0';
$msg = 'hello';
$APIStype = 'php';
$json = json_encode(array(
'ServerKey'=>$ServerKey,
'APIStype'=>$APIStype,
'UserFrom' =>$userFrom,
'UID' =>$UID,
'cmd'=>$cmd,
'Msg'=>$msg
));
$json = urlencode($json);
$URL = $typeOfConnection.'://'.$host.':'.$portWEB.'/API/?data=' . $json;
file_get_contents($URL);
?>
$msg = 'hello'; как сделать ну например красным?