DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Send SMS Via SMS Gateway Using PHP

  • submit to reddit
        See <A HREF="">SMS Gateway</A> for more detailed examples.

$URL = '';
$PHONE = '12506063167'; // comma separated list of phone numbers
$USERNAME = urlencode ('');
$PASSWORD = urlencode ('pass72727');
$TXT = urlencode ('This is a test, pls ignore');

$Q = "$URL?username=$USERNAME&password=$PASSWORD&phone=$PHONE&txt=$TXT";

$res = implode ('', file ($Q));
echo "Matrix API Response :\n$res\n";