Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vinay Yadav  >  skipjackResponseCheck  >  example.php.txt  >  Download  
File: example.php.txt
Role: Example script
Content type: text/plain
Description: Example Script
Class: skipjackResponseCheck
Skipjack response reading class
Author: By
Last change:
Date: 2003-08-06 19:55
Size: 635 bytes
 

Contents

Class file image Download
<?php
   
/**
    * Example script demonstration use of skipjackResponseCheck class.
    * 
    * Vinay Yadav (vinayRas)
    * vinay@vinayras.com
    * http://www.vinayras.com/
    * 
    */
   
require('skipjackResponse.php');
    
/**
    * Create an instance of the class
    */
    
$sk = new skipjackResponseCheck($_POST);

    
/**
    * Get status code sent by skipjack server.
    * $statusCode == 1, means  transaction approved
    */
    
$statusCode $sk->statusCode;

    
/**
    * Get status message
    */
    
$statusMsg $sk->getStatus();

     print(
"Return status: [$statusCode$statusMsg");
?>