|
From: <php...@li...> - 2008-08-06 09:18:25
|
I use php-gtk with javabridge under Win32... All my code is a standalone
php script. To start JavaBridge, i use this command :
<?
// Starting JavaBridge
$port = 8080;
system("start JavaBridge\JavaBridge.jar SERVLET_LOCAL:$port");
$java_inc_filename = "http://127.0.0.1:$port/JavaBridge/java/Java.inc";
require_once($java_inc_filename);
?>
This works fine... At the end of my php script I would like to terminate
the 'javaw' process (win32). I use the following piece of code :
<?
java("java.lang.System")->exit(0);
?>
This terminate the bridge but with a little delay and cause an error. Is
there a better way to do that ?
Thanks in advance,
Benjamin.
|