<?php
require_once "../class.pAjax.php";
function test() {
return $_SERVER;
}
$AJAX = new pAjax;
$AJAX->enableExportProtection();
$AJAX->disableDomainProtection();
// Try comment the next line and you'll experience parser in action
// describing the error that you don't exported the requested function
$AJAX->export("test", array("phpinfo"));
$AJAX->handleRequest(); // Default response charset is UTF-8
?>
|