Hi there, due to popular demand (requests sent to my personal email – mypapit -at- gmail.com).
I decided to share my old post regarding my simple SendSMS php class which can help php developers to send SMS from their web application
[php]
require(‘SendSMS.php’);
$sendsms = new SendSMS(“username”,”password”,”HTTP POST API key”);
/* if the login return 0, means that login failed, you cant send sms after this */
if ( ($sendsms->login()) == 0 ) {
die( “failed”);
}
/*other wise, you can send sms using the simple send() call*/
$sendsms->send(“0132073011″,”can you receive this message? Hello there….”);
[/php]
Requirements
To use SendSMS class, you need:
- To enable php curl or libcurl-emu
- Register a Clickatell account, and have a few SMS credits to spare
That’s it.. contact me if you’ve more questions
Download SendSMS PHP class (version 0.5)
.
.
.
Pitso, another option is to replace ‘split’ with ‘explode’ in the php class
Pitso, in a production server you should turn off the deprecated warning, it’s a good security practice
very nice article…i have successfully send message through Clickatell, but i also get this message :
Deprecated: Function split() is deprecated in C:\xampp\htdocs\api\SendSMS.php on line 61.
care to point out where we can find the script?
Thank you for sharing this. But there is any script exist that work with my server no need to register on other blog. just sent sms by uploading the script on server