Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Sending simple message using PHP
- // http://jasminsms.com
- $baseurl = 'http://127.0.0.1:1401/send'
- $params = '?username=foo'
- $params.= '&password=bar'
- $params.= '&to='.urlencode('+336222172')
- $params.= '&content='.urlencode('Hello world !')
- $response = file_get_contents($baseurl.$params);
- ?>
- http://127.0.0.1:1401/send?username=foo&password=bar&to=06222172&content=hello
- curl -d "username=foo&password=bar&dlr=yes&dlr-level=3&to=xxxxxxxxxx&from=InfoMessage&dlr-url=http://exemple.com/dlr.php&content=hello !" http://127.0.0.1:1401/send
- <?php
- $ch = curl_init("http://127.0.0.1:1401/send");
- $fp = fopen("username=foo&password=bar&dlr=yes&dlr-level=3&to=xxxxxxxxxx&from=InfoMessage&dlr-url=http://exemple.com/dlr.php&content=hello !", "w");
- curl_setopt($ch, CURLOPT_FILE, $fp);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_exec($ch);
- curl_close($ch);
- fclose($fp);
- ?>
- <?php
- $ch = curl_init('http://127.0.0.1:1401/send?username=foo&password=bar&to=xxxxxxxxxx&content=hello !');
- curl_exec ($ch);
- curl_close ($ch);
- ?>
Add Comment
Please, Sign In to add comment