qooxdoo includes an advanced RPC mechanism for direct calls to server-side methods. It allows you to write true client/server applications without having to worry about the communication details.
As described in the RPC overview, qooxdoo RPC is based on JSON-RPC as the serialization and method call protocol. This page describes how to set up and implement a PHP-based server.
Note
The following information is from the README.CONFIGURE file of the RpcPhp contribution.
The simplest configuration of the PHP JSON-RPC server requires these steps:
Copy the services directory to the root of your web server's data directory, e.g. /var/www
Ensure that PHP is properly configured. Try placing a file in the services directory called test.php which contains this data:
<?php
phpinfo();
?>
You should then be able to access http://your.domain.com/services/test.php and see the phpinfo() output. If not, you have a web server / php configuration problem to work out.
Configure your web server to load index.php if it's found in a directory specified by the URL. By default, the web server probably looks only for index.html and index.htm, but you want it also to look for index.php.
Please see RpcExample for an example of how to use an RPC backend.
To set up the RPC Example application:
# mkdir /var/www/test # rsync -av ./build/ /var/www/test/
Note the slash after 'build' so that it copies the contents of 'build' into 'test', but not the directory 'build' itself.