|
From: <php...@li...> - 2007-12-14 17:54:00
|
Hi,
> I am absolutely new to this. But i need to finish some
> job with it and was wondering if someone could
> help me with a tutorial that can help me learn fast.
just download and extract the php-java-bridge_j2ee.zip file. Then right click on JavaBridge.jar
and select "open with Java ...".
After that you can run PHP scripts with Java code embedded. For example:
php -n -dallow_url_include=On test.php
test.php:
require_once ("http://localhost:8080/JavaBridge/java/Java.inc");
$System = java ("java.lang.System");
echo java_inspect ($System); // display all public methods of java.lang.System
If you want a more convenient environment, use Zend Studio and drag and drop Java.inc into its
project include directory. Zend studio offers auto completion for both, Java and PHP methods.
Regards,
Jost Boekemeier
__________________________________ Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. www.yahoo.de/clever
|