Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of poomalairaj  >  Mycantos online SMS messenger  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file that sends sms using mycantos-sms class
Class: Mycantos online SMS messenger
Send SMS messages through Mycantos.com service
Author: By
Last change:
Date: 5 years ago
Size: 527 bytes
 

Contents

Class file image Download
<?php
# Sample execution using the mycantos class.


include_once('mycantos-sms.php');    # include the mycantos class
$msg= new MyCantos('mycookie');        # create instance of the class

echo $msg->login('username''Password');    # login using mycantos username and password (echo is optional)

echo $msg->sendSMS('9894113980'"This is a test message");    # send sms by providing mobile number and message (echo is optional) message should be less than 118 characters.

print_r($msg);        # print the object (for debugging)
?>