Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
/ AlfaSMS-API Public archive

PHP class to send SMS using free SMS providers such as way2sms.com, 160by2.com

Notifications You must be signed in to change notification settings

alfredfrancis/AlfaSMS-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Script doesnt work anymore

Example 1

			include_once "alfa.sms.class.php";									
			$sms=new AlfaSMS();											
			$result=$sms->login('username','password');							
			$sms->send('8089617433','Thanks Alfred,your API works perfectly.');	
			$sms->logout();															
		?>

Example 2

		<?php
			include_once "alfasmsapi/alfa.sms.php";
			$link = mysql_connect("localhost", "mysql_username", "mysql_password") or die ("Could not connect to MySQL");
			mysql_select_db ("Your_databse") or die ("Could not select database");
			$query="SELECT * FROM members";
			$result=mysql_query($query);
			$content="Testing Alfasms";
			while ($myrow = mysql_fetch_array($result))
			{
				alfasms($myrow["mobile"],$content);	
			};
		?>
If you get Fatal error: Call to undefined function curl_init() ,
Then you need to enable the curl extension in php.ini from your controlpanel.
If your server is not supporting cURL,obtain my online version @ www.alfredfrancis.in/alfasms-api
which will works an all server which supports PHP

About

PHP class to send SMS using free SMS providers such as way2sms.com, 160by2.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages