PHP and Java interoperablity

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-04-28T09:06:43Z Indexed on 2010/04/28 9:13 UTC
Read the original article Hit count: 184

Filed under:
|

I am working on windows using tomcat 6 and PHP/Java Bridge. I know how to access a Java file from PHP but how do we do it the other way i.e accessing PHP from Java

<?php
require_once("java\Java.inc");
$systemInfo = new Java("java.lang.System");
print "Total seconds since January 1, 1970: 
".$systemInfo->currentTimeMillis();
?>

Also how do I access Java classes that are created by me. Do I write a CLASSPATH env variable or change the php.ini config file?

© Stack Overflow or respective owner

Related posts about php

Related posts about java