Menu

Tree [r966] / branches / Release-6-0-0 / php-java-bridge / examples / clients /
 History

HTTPS access


File Date Author Commit
 README 2006-11-25 jost2345 [r468] Release-3-2-1
 formatArray.xsl 2005-02-24 jost2345 [r160] Replaced Guile/SCHEME with Chicken/SCHEME example
 getProperties.py 2008-11-27 jost_boekemeier [r720] Release 5.3.3.1
 getProperties.scm 2008-11-27 jost_boekemeier [r720] Release 5.3.3.1
 listToArray.scm 2008-11-27 jost_boekemeier [r720] Release 5.3.3.1
 sample.php 2008-03-30 jost_boekemeier [r649] Release-5-2-2

Read Me

This folder contains examples which show how to connect to the
PHP/Java Bridge from PYTHON and Chicken/SCHEME.


* getProperties.py: Connects to the PHP/Java Bridge, asks for
  System.getProperties() and displays the first entry. 

  Start the server with java -jar JavaBridge.jar and invoke the
  example with:
 
    python getProperties.py
 

* listToArray.scm: Connects to the PHP/Java Bridge, creates a
  java.util.ArrayList and fills it with three entries. Then it receives
  the entire array list from the server and displays it.

  Start the server with java -jar JavaBridge.jar and run the example with:

    csi listToArray.scm


* getProperties.scm: Connects to the PHP/Java Bridge, asks for
  System.getProperties(), receives the properties dictionary and
  prints it as a HTML table using the formatArray.xsl transformer.

  Start the server with java -jar JavaBridge.jar, compile the scheme file
  into native code and invoke it:

    csc -lxslt getProperties.scm && ./getProperties |tee out.html

  After that you can examine the out.html with a web browser.


* sample.php: A pure PHP example which communicates directly with the
  server.

  Start the server with java -jar JavaBridge.jar and invoke the
  example with:
 
    php sample.php


These examples use the python and Scheme script languages. They can be
obtained from:

   http://www.python.org

and

   http://directory.fsf.org/chicken.html  or
   http://www.call-with-current-continuation.org/chicken.html

The Scheme code in example #3 calls the libxslt.so library to apply
the XSLT transformation. It is part of the GNOME project and can be
optained from http://www.gnome.org if it isn't already installed on
your computer.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.