PHP Classes

File: example.php

Recommend this page to a friend!
  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 service
Author: By
Last change:
Date: 13 years ago
Size: 527 bytes


Class file image Download
# 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)

For more information send a message to info at phpclasses dot org.