I meet a problem when using java in php.
My environment:
Php4.3 + jdk1.3.1 + apache2.0.43 + win2k
If I config php as CGI in apache, the java extension works.
However, the java does not work after I config the php as module in apache.
My java code is:
<?php
$system = new Java("java.lang.System");
print "Java version=".$system->getProperty("java.version")." <br>\n";
?>
It will raise following error:
Fatal error: Cannot instantiate non-existent class: java in c:\php\testjava.php on line 2
Does anybody know how to resolve this problem?
Thanks.