Search
 
SCRIPT & CODE EXAMPLE
 

PHP

send sms by php diafaan

<?php 
/*
PHP script to send SMS messages with the HTTP API of Diafaan SMS Server
*/
  
echo SendMessage('localhost', '9710', 'admin', 'password', '+32xxxxxxxxxx', 'My text message');
  
function SendMessage($host, $port, $userName, $password, $number, $message)
{
  
    /* Create the HTTP API query string */
    $query = 'http://'.$host.':'.$port;
    $query .= '/http/send-message/';
    $query .= '?username='.urlencode($userName);
    $query .= '&password='.urlencode($password);
    $query .= '&to='.urlencode($number);
    $query .= '&message='.urlencode($message);
      
    /* Send the HTTP API request and return the response */
    return file_get_contents($query);  
}
  
?>
Comment

PREVIOUS NEXT
Code Example
Php :: ajax update method in php pdo 
Php :: delete uploaded media file wp using code 
Php :: acf get sub field 
Php :: laravel migrate only one table 
Php :: how to hide get parameters in url php 
Php :: array_intersect php 
Php :: select session php 
Php :: php get intersection of two arrays 
Php :: laravel read origanl value before update 
Php :: php get username from iis 
Php :: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; 
Php :: php Error!: could not find driver 
Php :: forelse laravel 
Php :: laravel-admin Model does not exists ! 
Php :: laravel descending order paginate eloquent 
Php :: write file in php 
Php :: string to array in laravel 
Php :: php preg_replace whitespace 
Php :: wordpress do shortcode 
Php :: how to fetch jQuery in wordpress 
Php :: confirm password validation laravel 
Php :: artisan refresh 
Php :: create session in php 
Php :: laravel pass view with data 
Php :: laravel 8 $request-intersect not working 
Php :: php ucwords 
Php :: upppercase php 
Php :: tackle discount in php laravel blade 
Php :: how to trim white space array in php 
Php :: remove all post in wordpress by query 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =