Retrieving Two-Way SMS Messages From Clickatell Gateway - Part 2

Written on October 15, 2007 – 9:48 pm | by Michael Boateng |

The first part of the tutorial on to retrieve two-way text messages from clickatell gateway was basically about creating a mysql database that will store data received from Clickatell Gateway via the Callback Url.

This tutorial is will just show you how to create your “settings.php” which declares the main settings of your programme. It stores your mysql login details and the clickatell gateway api login details.

All you have to do is copy and paste the code below and save it as “settings.php”. Then you change all the xxxx in the code to the appropriate values per your mysql database and your credentials at clickatell.

settings.php

<?php

$baseurl =”http://api.clickatell.com”;

//User details @ Clickatell
$user = “xxxx”;
$password = “xxxx”;
$api_id = “xxxxx”;

//mysql details
$hostname_conn = “xxxx”;
$database_conn = “xxxx”;
$username_conn = “xxxx”;
$password_conn = “xxxx”;
$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR);

?>

User Details @ Clickatell
//$user = This is the username assigned to you by clickatell
//$password = This your clickatell api password;
//$api_id = The api id can be generated on your clickatell control panel

User Details @ Clickatell
// $hostname_conn = This is your database hostname
//database_conn = Change this to the name of your database
// $username_conn = This is the user logon to ur database
// $password_conn = Change this to your database password

Part 1 | Part 2

Post a Comment

About This Blog

Welcome to the Official Blog of Michael Ofori Amanfo Boateng [www.mboateng.com], an online blog resource for all web designers Ghana. There will be tutorials on Ajax ,ASP, ASP.NET, C#, CFML, Flash, JavaScript, PHP, Python (125) and Ruby on Rails. More

Want to subscribe?

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
Find entries :