Hello,
not sure if this is the right place to ask but I hope someone can help me.
I am new to PHP but quite advanced in Java. Due to some disparate components in our system I am trying to integrate PHP with Java and I really have a hard time.
I have compiled PHP with Java support and followed all the instruction I found in various sites but I am still not able to make PHP with Java work. I have been looking into the PHP Builder message boards and I am having exactly the same problem as this guy here: http://www.phpbuilder.com/annotate/message.php3?id=1014708. Unfortunatelly noone answered his comment so I am not sure what a possible solution could be.
My php.ini file is as follows:
extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20020429
extension=libphp_java.so
java.class.path=/usr/local/apache/php/lib/php/php_java.jar
java.home=/homa/panos/java/j2sdk1.4.0
java.library=/home/panos/java/j2sdk1.4.0/jre/lib/i386/server/libjvm.so
java.library.path=/usr/local/lib/php/extensions/no-debug-non-zts-20020429
When I run a sample file I get no response in any of the apache logs or in the browser... I am using Opera 6.1 and it just tries to connect to the site on a spastic fit (I am seeing the messages "Sending request to 127.0.0.1" and "Trying to connect to 127.0.0.1" all the time).
On Netscape it just says it cannot load an empty document while on Mozilla it loads up properly but when I do view source I have an empty document (only the <html> and <body> tags show).
The sample php file I try to run is the following:
<?php
print "testing...";
$systemInfo = new Java("java.lang.System");
print "Total seconds since January 1, 1970:".$systemInfo->currentTimeMillis();
?>
I am stuck with this problem for two days now, if someone has any ideas of what's going on please let me know.
Thank you.