This should work:
You can echo out $result.Code:$to = "Joe"; $from = "Momma"; $body = "body here"; $url = "https://api.twilio.com/2010-04-01/Accounts/xxx/SMS/Messages.xml?from={$from}&to={$to}&body={$body}"; $ch = curl_init(); curl_setopt($ch,CURLOPT_TIMEOUT,5); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch);
For further information check out the PHP manual: http://us2.php.net/manual/en/function.curl-exec.php




Reply With Quote