PHP Classes

File: dotgo.engine.php

Recommend this page to a friend!
  Classes of Dave Smith   PHP dotGo Engine   dotgo.engine.php   Download  
File: dotgo.engine.php
Role: Example script
Content type: text/plain
Description: dotgo response engine
Class: PHP dotGo Engine
Interact with SMS messages sent to your site
Author: By
Last change: added session handling
Date: 8 years ago
Size: 523 bytes
 

Contents

Class file image Download
<?php
//dotgo response engine
//for use with dotgo class ver 0.1 beta
error_reporting(0);
session_start();

include_once(
'dotgo.class.php');
$dotgo = new dotgo();

$dbConnected = $dotgo->dbConnect();
if( empty(
$dbConnected) ){
   
    die(
'<message><content>There has been a connection error</content></message>');
   
}

$keyword = $dotgo->processData();
if( !empty(
$keyword) ){
   
    echo
$dotgo->showResponse($keyword);
   
}else{
   
    echo
$dotgo->defaultResponse;
   
}
exit;
?>