Login   Register  
PHP Classes
elePHPant
Icontem

File: tests/server.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Guilherme Blanco  >  pAjax  >  tests/server.php  >  Download  
File: tests/server.php
Role: Example script
Content type: text/plain
Description: Server Script URI Test
Class: pAjax
Do RPC calls from the browser without page reloads
Author: By
Last change: +-----------------------------------------------------------------------------+
| Version 1.5.10 - Date: 2007-01-23 14:15 |
+-----------------------------------------------------------------------------+
- Corrected setFormParam function in pajax-core.js
- Corrected class.pAjax.php method excCall to deal correctly with arrays and
non-array arguments
- Fixed bug in class.pAjaxParser.php, method getPhpType. It was throwing an
error of unsigned offset 0 in $matches variable
- Updated examples (used php short open tags) and now they use the right one
Date: 2007-01-25 16:57
Size: 435 bytes
 

Contents

Class file image Download
<?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

?>