Login   Register  
PHP Classes
elePHPant
Icontem

File: consumer.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Alterisio  >  PHON  >  consumer.php  >  Download  
File: consumer.php
Role: Example script
Content type: text/plain
Description: Consumer example
Class: PHON
Unserialize values exported with var_export
Author: By
Last change:
Date: 6 years ago
Size: 330 bytes
 

Contents

Class file image Download
<?php
require_once 'phon/phon.lib.php';

$phon file_get_contents('http://' $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/provider.php');

require_once 
'PHONEvaluator.php';
$evaluator PHONEvaluator::getInstance();
$data $evaluator->evaluate($phon);

echo 
"Service provider says: " $data['message'];