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?
asked Apr 28, 2010 at 9:06
Bruce
35.5k77 gold badges185 silver badges267 bronze badges
-
similar to stackoverflow.com/questions/2727129/…Lars Andren– Lars Andren2010年04月28日 09:14:29 +00:00Commented Apr 28, 2010 at 9:14
1 Answer 1
I think you should look at JPHP, which embeds PHP into the Java VM.
answered Apr 28, 2010 at 9:13
Lars Andren
8,7817 gold badges43 silver badges57 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
Bruce
No I want to use PHP/Java Bridge. I cant install JPHP on windows
default