From: <php...@li...> - 2006-10-14 15:06:49
|
Hi, [please excuse the delay] I am sorry, but I could not reproduce this problem with php 4. I have installed the latest tomcat version (http://ftp.uni-erlangen.de/pub/mirrors/apache/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.exe) and downloaded and copied the current PHP/Java Bridge ("JavaBridge.war") into C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps downloaded and extracted the current PHP4 version to c:\php and changed C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\JavaBridge\WEB-INF\web.xml to <init-param> <param-name>php_exec</param-name> <param-value>C:\php\php.exe</param-value> </init-param> After that I was able to run PHP4 applications within tomcat. The only problem I see is that the documentation shows forward slashes, which is something that doesn't work on windows. But this is a minor problem, imho. > Now I'm fishing around abit to see if I can stumble > across a solution, I > try 'php-4-java-x86-windows.dll' in place of > php-cgi-x86-windows.exe in > the web.xml param-name value. Restart TC and get: You don't need a php_java.dll to run php from java. The PECL extension is only necessary for PHP4 and only if you want to embed java statements into your PHP pages. > So I try c:\php\php.exe in web.xml and get "Fatal: > The loaded java > extension is not the PHP/Java Bridge" That's okay, see above. You probably use an old version of the PECL extension. > PHP 4.4.2 too old. > For PHP versions < 5.1.4 install the PECL extension, Yes, the pure PHP implementation currently only works with php 5.1.4 or above. If you want to embed java statements into your php pages, you must install the PECL extension from sourceforge. > Try the url in the error msg above and search it for > PECL without luck The PECL extension is packaged within the JavaBridge.war. > tried copying php_java.dll and php_java.jar These versions are 4 years old and don't work anymore. Don't use them. Please use the most recent versions of the PHP/Java Bridge and the PECL extension. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |