PHP AND JAVA
Posted: Mon Jun 21, 2004 2:09 am
Hello,
Can any one tell me steps to connect php with java.
Thanks,
Can any one tell me steps to connect php with java.
Thanks,
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
For those who have problems(1) with the broken(2) php/java module that is shipped with php, there's an alternative which is technically superior:
-> http://www.phpbuilder.com/lists/php-gen ... 2/0718.php
The author says that the module does not yet work on Windows, though. But I guess it should not be difficult to change the Unix fork/exec calls into the windows equivalent.
(2) http://tjw.org/php_java/build_notes.php
(1) These problems have technical reasons (extension dlopened):
* Fatal error: Unable to load Java Library
* [must] symlink "java.so" in your php extensions directory to
* ldconfig is needed
* LDFLAGS=-lpthread needed
* did not get to work PHP with Suns JDK 1.4.0_01 (Apache crashes), but JDK 1.4.2 works.
* the running httpd process, keeps the class file somewhere in cache
* [exec call is] considerably faster than accessing the same functionality with the JAVA extension