query($sql);*/ $content = file_get_contents('php://input'); /*if(isset($_GET['userId'])){ $content = $_GET['userId'].' '.$content; }*/ if(isset($_POST)){ $content." ".json_encode($_POST, JSON_UNESCAPED_UNICODE); } $arPath = explode('/', __FILE__); $agency_id = $arPath[count($arPath)-2]; ///$arPath = explode('/', __FILE__); file_put_contents($_SERVER['DOCUMENT_ROOT']."/webhooks/cian/".$agency_id."/log_cian.txt", $content."\n", FILE_APPEND); //$data = json_decode($content, true); require_once($_SERVER['DOCUMENT_ROOT']."/webhooks/cian.php"); //var_dump($data);