Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $message = "testing from the application.";
  2. $mobile_number = ""; //hidden for security
  3. $sender = ""; //hidden for security
  4. $ch = curl_init(""); //hidden for security, http://ip
  5. curl_setopt($ch, CURLOPT_URL, "api.php?username=&password=&number=$mobile_number&sender=$sender&type=0&message=$message");
  6. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  7. curl_setopt($ch, CURLOPT_HEADER, true);
  8. curl_setopt($ch, CURLOPT_NOBODY, true);
  9. echo $output = curl_exec($ch);
  10. echo curl_getinfo($ch, CURLINFO_HTTP_CODE);
  11. curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement