Retrieving Two-Way SMS Messages From Clickatell Gateway – Part 2
Posted on October 15th, 2007 in HTTP/S | No Comments »
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
















