Advertisement
Niko454

Untitled

Feb 1st, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2. // leave this blank - we may never implement an authentication key
  3. $smsarc_API_key = '';
  4.  
  5. // enter the user's 10 digit cell phone number.
  6. // example format: $smsarc_to = '5556667777';
  7. $smsarc_number = '5192097991';
  8.  
  9. // lookup carrier
  10. $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, 'http://www.smsarc.com/api-carrier-lookup.php?sa_number='.$smsarc_number.'&sa_key='.$smsarc_API_key); $AskApache_result = curl_exec ($ch); $smsarc_message_status = $AskApache_result; curl_close($ch);
  11.  
  12. // print the carrier lookup results
  13. echo $smsarc_carrier;
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement