$login = 'wincottmaster'; $call = microtime(true); $password = md5(md5("o10vqM48").$call); $url = "https://api.profisms.cz/index.php?" . http_build_query(array( "CTRL" => "sms", "_login" => $login, "_password" => $password, "_service" => "sms", "_call" => $call, "text" => "Ahoj, jak se máš?", "msisdn" => '+421918420671', )); /** URL bude vypadat https://api.profisms.cz/index.php?CTRL=sms&_login=user &_password=276b37d2c50a5a1572bf294f8bed39ca &_service=sms&_call=1293488006.375 &text=Ahoj%2C+jak+se+m%C3%A1%C5%A1%3F &msisdn=%2B420605582922 */ $json = join("", file($url));