Hello, I'm trying to use JAVA Classes inside PHP, but without success. I've searched at php.net/java and other sources, but when I try to exeute the PHP script I get a "500 INTERNAL SERVER ERROR", and the Log file from APACHE has this error message:
"Sat Aug 04 12:12:51 2007] [error] [client 127.0.0.1] Premature end of script headers: c:/php/php.exe".
I'm using:
PHP 4.3.2
APACHE 1.3.28
JDK 1.2.2
My PHP script:
function CreateObject()
{
$COM = new Java('itaucripto.class');
return $COM;
}
$cripto = CreateObject();
$data= $cripto->generate($data);
My PHP.INI file:
[Java]
java.class.path = "c:\php\extensions\php_java.jar"
java.home = c:\jdk\bin
java.library = c:\jdk\jre\bin\classic\jvm.dll
java.library.path = "c:\php\extensions\"
The Extension used
extension=php_java.dll
My Local PHPINFO():
http://www.ddinstrumentos.com.br/loja/phpinfo_03_08_07.gif
Thanks for your help!