PHP Classes

File: consumer.php

Recommend this page to a friend!
  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: 14 years ago
Size: 330 bytes


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

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

$evaluator = PHONEvaluator::getInstance();
$data = $evaluator->evaluate($phon);

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

For more information send a message to info at phpclasses dot org.