in order to execute code under http://my-server:8080/ doesn't it have to be a java class?
Since PHP was never written in JAVA, that I know of, I suspect it will never be a class file, and that may explain why you don't find a "php_java.jar". What you will find is a php_java.so or php_java.dll (depending on your platform) that executes under PHP which executes usually on an apache server, usually as a cgi at port 80 (try http://my-server:80/examples/test.php). I may be wrong here, but PHP can invoke Java modules, only if it first invokes the JRE to execute those modules, conversely a Java module could invoke PHP modules if it first invokes the PHP runtime environment. Whether you like it or not, Java and PHP run pretty much as equals, each in their own environment, and the only way they can co exist is you invoke their runtime environment first. Java runtime has no ability to run PHP code that I know of and PHP has no ability to interpret the java byte code without invoking a JRE to do it. When you read the manuals, the authors usually try to imply that it is more tightly integrated than it really is, but I think you will find it is pretty much as I've described here. If others disagree, you will probably hear about it here as well, stay tuned. http://www.php.net/manual/en/ref.java.php Warren Vail -----Original Message----- From: dba user [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 2:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Servlet/PHP integration I am sorry, if this message is a duplicate post. (I unwittingly press some key and the page got refreshed before completing my post). I am trying the Servlet/Php integration. I installed php with java support. But, I do not see "php_java.jar" in any of the directories. I have "/usr/local/php4/lib/php/phpsrvlt.jar" though. I am wondering why I did not have the php_java.jar file? How do I verify I got php installed with java support? [I did not get any error message during make install]. Also, when I tried to acess the test.php, as http://my-server:8080/examples/test.php , I get the error "Class not found. net.php.servlet". I copied the "phpsrvlt.jar" under ../server/lib of tomcat. If this is not correct, where would I copy the phpsrvlt.jar? Also, does the CLASSPATH of the tomcat should have this jar included? Should it have the LD_CONFIG set in the startup script? Thanks. --------------------------------- Do you Yahoo!? Yahoo! Search - Find what you're looking for faster. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php