Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $url = "http://www.smsapi.si/poslji-sms"; //url we are posting to (defined in sms api documentation)
- $data = array("un" => urlencode("uporabniško_ime"), //api username
- "ps" => urlencode("api geslo"), //api pass
- "from" => urlencode("041642810"), //don"t send as int
- "to" => urlencode("vaša_telefonska_številka"), //don"t send as int
- "m" => urlencode("Strežnik ja zagnan."), //msg
- "cc" => urlencode("386") //don"t send as int
- );
- //send SMS via HTTP GET
- $url = $url . "?" . http_build_query($data);
- $response = file_get_contents($url);
- echo $response;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment