Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: PHP - Java Bridge Deployment
10-23-2008, 09:21 AM #1
- Join Date
- Jan 2006
- Thanked 0 Times in 0 Posts
PHP - Java Bridge Deployment
I have installed the Java Application Platform (Glassfish) and Java EE 5.
I also downloaded the PHP - Java Bridge. I extracted the JavaBridge.wat file and auto deployed it within java.
When I log into the admin console and launch the JavaBridge examples from the menu most of them work, a few give errors though.
Has anyone else used this bridge? If the examples are working does this mean the bridge is working i.e. PHP and Java are communicating?
I also have J2EE SDK installed.
The instructions on the PHP-Java bridge webpage (http://php-java-bridge.sourceforge.n...stallation.php) show that you should deploy the war file in Apache Tomcat instead. I have read that some people have used glassfish instead with no problems. So I thought I'd autodeploy it using glassfish instead.
I have PHP 5.2.6 installed on my system, the paths are all set correct (PHP_HOME and path in system variables) yet when I use one of the examples in the JavaBridge package to show my PHP configuration ( phpinfo() ) its showing PHP 5.2.1. The code that forms this page is JSP, so I guess Java is consulting PHP for this info???
Here are some variables from phpinfo() :
- Server API: CGI/FastCGI - I've always wondered what this is?
- Configuration File (php.ini) Path: C:\PHP\php.ini
- JAVA_HOME: C:\Program Files\Java\jdk1.6.0_07\jre\
- Path: C:\Program Files\Sun\SDK\bin;C:\Program Files\Sun\SDK\bin;C:\PHP\;C:\CA_APPSW;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
Then there is a huge list of PHP variables are the end, for example one of which is:
_SERVER["X_JAVABRIDGE_INCLUDE"]: C:\Program Files\Sun\SDK\domains\domain1\applications\j2ee-modules\JavaBridge\jsp+php.jsp._cache_.php
So does all this indicate that the bridge is working?
PS: if I am running the Application server does this mean that a Java Virtual Machine is running in the background? How do I go about installing a JDBC driver within that virtual machine?
Any help would be great.
Last edited by jpmad4it; 10-23-2008 at 09:24 AM.