You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
(1) |
2
|
3
|
4
|
5
(1) |
6
(2) |
7
(4) |
8
(1) |
9
(1) |
10
(10) |
11
(5) |
12
|
13
(1) |
14
(1) |
15
|
16
|
17
|
18
|
19
(4) |
20
(1) |
21
|
22
|
23
|
24
|
25
(4) |
26
|
27
(10) |
28
|
29
|
30
|
|
|
|
|
|
|
From: <php...@li...> - 2007-09-27 17:58:56
|
Hi, > what about the Environmental > Variables and the require_once statement? it doesn't need any environment variables nor any php.ini entries nor anything else. You simply fopen() a connection to the running Java process and then use fread/fwrite to communicate with it. That's all. You do need Java up and running, though. If you don't have a J2EE server or servlet engine somewhere on the intranet, you can double-click on the program "JavaBridge.jar" (in the ext folder) to start the built-in "servlet engine" for this computer (option "SERVLET_LOCAL") or for all computers in the local network (option "SERVLET"). Please see http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/index.html for details. Regards, Jost Boekemeier Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail |
From: <php...@li...> - 2007-09-27 17:49:24
|
Hi, > Hi Jost, no luck yet, a couple of things: - where should I run the > test.bat isn't it possible to double-click on test.bat? Regards, Jost Boekemeier __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever |
From: <php...@li...> - 2007-09-27 17:24:30
|
Hi Jost, no luck yet, a couple of things: - where should I run the test.bat from- the require_once parameter ".../loalhost//JavaBridge " etc - I just copied this from somewhere. What file is it actually pointing to ?- where should the JavaBridge.var be held. thanks, Paul ----- Original Message ----- From: php...@li... To: php...@li... Subject: Re: [Php-java-bridge-users] Can't even do "Hello World " :( Date: Thu, 27 Sep 2007 19:07:02 +0200 (CEST) Hi, >> My test program: >> /* >> require_once("http://localhost:8080/JavaBridge/java/Java.inc"); >> */ >> $System =3D new Java("java.lang.System"); >> phpinfo(); >> echo $System->getProperties(); > that it can'f find the class 'Java' Believe me, I have read the Try to uncomment the require_once() statement. :) BTW: If you double-click on test.bat and you don't get a valid result (a test page with PHP and Java output embedded), please file a bug report. Otherwise please check your php.ini. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie=B4s mit dem neuen Yahoo! Mail. www.yahoo.de/mail ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --=20 We've Got Your Name @ www.mail.com!!! Get a FREE E-mail Account Today - Choose From 100+ Domains |
From: <php...@li...> - 2007-09-27 17:17:59
|
thanks, Jost, I'm getting the same error.... what about the Environmental Variables and the require_once statement ? Paul ----- Original Message ----- From: php...@li... To: php...@li... Subject: Re: [Php-java-bridge-users] Can't even do "Hello World " :( Date: Thu, 27 Sep 2007 18:57:18 +0200 (CEST) > What > should I have in the [JAVA] part of php.ini Nothing. Regards, Jost Boekemeier Wissenswertes zum Thema PC, Zubeh=F6r oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --=20 We've Got Your Name @ www.mail.com!!! Get a FREE E-mail Account Today - Choose From 100+ Domains |
From: <php...@li...> - 2007-09-27 17:07:06
|
Hi, >> My test program: >> /* >> require_once("http://localhost:8080/JavaBridge/java/Java.inc"); >> */ >> $System = new Java("java.lang.System"); >> phpinfo(); >> echo $System->getProperties(); > that it can'f find the class 'Java' Believe me, I have read the Try to uncomment the require_once() statement. :) BTW: If you double-click on test.bat and you don't get a valid result (a test page with PHP and Java output embedded), please file a bug report. Otherwise please check your php.ini. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail |
From: <php...@li...> - 2007-09-27 16:57:22
|
> What > should I have in the [JAVA] part of php.ini Nothing. Regards, Jost Boekemeier Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever |
From: <php...@li...> - 2007-09-27 16:55:52
|
Hi again, [storing a PHP object into the Java session] > Also please see the FAQ entry "how do I create a Java object from a PHP value". my answer wasn't quite right. Storing Java objects into the PHP session works, but not the other way 'round. When you allocate a Java proxy backed by a PHP object the following code: <?php class C { var $state; function toString() {return "C:: $state";} } echo java_session()->get("C"); java_session()->put("C", java_closure(new C())); ?> doesn't work because the PHP state is currently *not* saved. We keep the PHP object in a global map (see "GlobalRef.inc"), which is destroyed at the end of the script. As a workaround please use the PHP session instead: session_start(); $_SESSION["C"]=new C(); The PHP session can hold both, PHP and Java values. Java objects are automatically stored in the back end. But at the moment the back end has no idea how to store/retrieve the PHP state associated with a Java proxy. I will add the necessary hooks in version 4.3.0. Thank you very much for reporting this issue! Regards, Jost Boekemeier __________________________________ Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever |
From: <php...@li...> - 2007-09-27 16:39:20
|
Thanks for that..... a step forward but no joy yet. the message I get is that it can'f find the class 'Java' Believe me, I have read the installation guides but have the following questions: 1) What should I have in the 'require_once' part of my hello world program ? 2) What should I have in the [JAVA] part of php.ini ? 3) What should I put in the environmental variables. ? any tips very much appreciated. I have spent numerous hours trying to get this to work. Paul ----- Original Message ----- From: php...@li... To: php...@li... Subject: Re: [Php-java-bridge-users] Can't even do "Hello World " :( Date: Thu, 27 Sep 2007 07:01:27 -0700 (PDT) Disable the php_java.dll extention. The bridge doesn't use it anymore. php...@li... wrote: as you will see, I have no idea what I'm doing....here is my set up which currently isn't workingApache 2.2.4 Php 5.2.4 Java Php Bridge 4.3 Jdk 1.6 Windows XPMy directory is set up as follows:-C:\wamp\php.... C:\Program Files\Javain the wamp\php\ext directory I haveJavaBridge.jar php_java.dll My Environmental Variables:-CLASSPATH . JAVA_HOME C:\Program Files\Java\jdk1.6.0_02 PATH %PATH%;%JAVA_HOME%\bin My php.ini:-.... ;extension=3Dphp_ingres.dll extension=3Dphp_java.dll ;extension=3Dphp_lzf.dll ....[JAVA]java.home =3D "c:\Program Files\Java\jdk1.6.0_02\bin" java.java =3D "c:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe" java.class.path =3D "c:\wamp\php\ext\JavaBridge.jar" java.library.path =3D "c:\wamp\php\ext\" java.library =3D "c:\Program Files\Java\jdk1.6.0_02\jre\bin\server\jvm.dll" My test program:-/* require_once("http://localhost:8080/JavaBridge/java/Java.inc"); */ $System =3D new Java("java.lang.System"); phpinfo(); echo $System->getProperties(); ?> I would be extremely grateful for any help. Paul -- We've Got Your Name @ www.mail.com!!! Get a FREE E-mail Account Today - Choose From 100+ Domains ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --=20 We've Got Your Name @ www.mail.com!!! Get a FREE E-mail Account Today - Choose From 100+ Domains |
From: <php...@li...> - 2007-09-27 14:01:32
|
Disable the php_java.dll extention. The bridge doesn't use it anymore. php...@li... wrote: as you will see, I have no idea what I'm doing....here is my set up which currently isn't workingApache 2.2.4 Php 5.2.4 Java Php Bridge 4.3 Jdk 1.6 Windows XPMy directory is set up as follows:-C:\wamp\php.... C:\Program Files\Javain the wamp\php\ext directory I haveJavaBridge.jar php_java.dll My Environmental Variables:-CLASSPATH . JAVA_HOME C:\Program Files\Java\jdk1.6.0_02 PATH %PATH%;%JAVA_HOME%\bin My php.ini:-.... ;extension=php_ingres.dll extension=php_java.dll ;extension=php_lzf.dll ....[JAVA]java.home = "c:\Program Files\Java\jdk1.6.0_02\bin" java.java = "c:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe" java.class.path = "c:\wamp\php\ext\JavaBridge.jar" java.library.path = "c:\wamp\php\ext\" java.library = "c:\Program Files\Java\jdk1.6.0_02\jre\bin\server\jvm.dll" My test program:-/* require_once("http://localhost:8080/JavaBridge/java/Java.inc"); */ $System = new Java("java.lang.System"); phpinfo(); echo $System->getProperties(); ?> I would be extremely grateful for any help. Paul -- We've Got Your Name @ www.mail.com!!! Get a FREE E-mail Account Today - Choose From 100+ Domains ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. |
From: <php...@li...> - 2007-09-27 11:53:53
|
as you will see, I have no idea what I'm doing....here is my set up which currently isn't workingApache 2.2.4 Php 5.2.4 Java Php Bridge 4.3 Jdk 1.6 Windows XPMy directory is set up as follows:-C:\wamp\php.... C:\Program Files\Javain the wamp\php\ext directory I haveJavaBridge.jar php_java.dll My Environmental Variables:-CLASSPATH .=20=20=20=20=20 JAVA_HOME C:\Program Files\Java\jdk1.6.0_02 PATH %PATH%;%JAVA_HOME%\bin My php.ini:-.... ;extension=3Dphp_ingres.dll extension=3Dphp_java.dll ;extension=3Dphp_lzf.dll ....[JAVA]java.home =3D "c:\Program Files\Java\jdk1.6.0_02\bin" java.java =3D "c:\Program Files\Java\jdk1.6.0_02\bin\javaw.exe" java.class.path =3D "c:\wamp\php\ext\JavaBridge.jar" java.library.path =3D "c:\wamp\php\ext\" java.library =3D "c:\Program Files\Java\jdk1.6.0_02\jre\bin\server\jvm.dll" My test program:-<?php /* require_once("http://localhost:8080/JavaBridge/java/Java.inc");=20=20= =20=20=20=20 */ $System =3D new Java("java.lang.System"); phpinfo(); echo $System->getProperties(); ?> I would be extremely grateful for any help. Paul --=20 We've Got Your Name @ www.mail.com!!! Get a FREE E-mail Account Today - Choose From 100+ Domains |
From: <php...@li...> - 2007-09-25 12:42:18
|
Hi Apostolos, > > java("java.sql.Date")->valueOf(...); > That did not work. The procedure "java" is defined in Java.inc (bridge version 4.0.0 and above) as: function Java($name) { static $classMap = array(); if(array_key_exists($name, $classMap)) return $classMap[$name]; return $classMap[$name]=new JavaClass($name); } > I can howeever create an instance of java.sql.Date even > if no such constructor exists (bug?) No, it's a feature. People used to access the class this way. It is not a good practice, but it works and it will work in all future releases of the bridge. When the high-level API is used (PHP 6 and PHP/Java Bridge 4.3 or above) one can access the type in a more intuitive way: $date = java_sql_Date::type()->valueOf("2007-12-07"); When the new syntax is used, new java_sql_Date() will throw a JavaException, of course. Regards, Jost Boekemeier ________ Yahoo! Clever: Stellen Sie Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen. www.yahoo.de/clever |
From: <php...@li...> - 2007-09-25 12:14:58
|
Hi Jost, thanks for the quick response. it works now (see below) On 9/25/07, php...@li... < php...@li...> wrote: > Hi, > > > > [o(DepMnt0302AcctDispDelSrvImport$InBankParameters)]->setCurrTrxDate((Date)c(Date)). > > AFAIK you need to pass a date object. Not a class. Note the "c" above. So c for class and o for object (yes it is obvious now I know) > > $java_date = new Java("java.sql.Date"); > > You cannot instanciate java.sql.Date() because no such constructor exists. > You probably want > > java("java.sql.Date")->valueOf(...); That did not work. I can howeever create an instance of java.sql.Date even if no such constructor exists (bug?) > > $java_date->valueOf("2007-12-07"); > > Why do you ask the date class "$java_date" to return an instance > "2007-12-07" and then throw it > away? That was the problem. I did not realise that I was throwing it away. The complete code that works is: $java_date = *new* Java("java.sql.Date"); $java_date = $java_date->valueOf("2007-12-07"); $proxy_input->getInParameters()->getInBankParameters()->setCurrTrxDate( $java_date); Note the $java_date = $java_date->valueOf("2007-12-07"); instead of the line that I had originally $java_date->valueOf("2007-12-07"); Thanks again, Apostolos |
From: <php...@li...> - 2007-09-25 11:50:46
|
Hi, > [o(DepMnt0302AcctDispDelSrvImport$InBankParameters)]->setCurrTrxDate((Date)c(Date)). AFAIK you need to pass a date object. Not a class. Note the "c" above. > $java_date = new Java("java.sql.Date"); You cannot instanciate java.sql.Date() because no such constructor exists. You probably want java("java.sql.Date")->valueOf(...); For backward compatibility the JavaBridge allows the above construct, but it issues a warning on log level 3 and above that you should correct the above code or use new JavaClass("java.sql.Date") instead, if that's what you want. > $java_date->valueOf("2007-12-07"); Why do you ask the date class "$java_date" to return an instance "2007-12-07" and then throw it away? Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |
From: <php...@li...> - 2007-09-25 10:30:28
|
Hi, I have instantiated a Java object in PHP 5.1.6 using the version 3.2.1b of the php/java bridge. I am trying to call a method (setCurrTrxDate) that expects a java.sql.Dateparameter to be passed and I am getting the following Java exception: java.lang.Exception: Invoke failed: [o(DepMnt0302AcctDispDelSrvImport$InBankParameters)]->setCurrTrxDate((Date)c(Date)). Cause: java.lang.IllegalArgumentException: argument type mismatch Responsible VM: 1.5.0_09 The relevant PHP code is: $java_date = new Java("java.sql.Date"); $java_date->valueOf("2007-12-07"); $proxy_input->getInParameters()->getInBankParameters()->setCurrTrxDate($java_date); I cannot understand why I am getting the type mismatch and I do not understand the (Date)c(Date) part in the exception :-( Any suggestions will be highly appreciated, Apostolos |
From: <php...@li...> - 2007-09-20 09:04:32
|
Hi, [creating a java object from a php value] please re-read the java_session() and java_closure() documentation on http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java_8c.html#doc25 and http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java_8c.html#doc32 Also please see the FAQ entry "how do I create a Java object from a PHP value". Regards, Jost Boekemeier __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever |
From: <php...@li...> - 2007-09-19 19:31:52
|
Hi all Is it possible put an php object inside of a java session, like this : $session=java_session("testSession"); $session->put("obj", $php_object); Thank you -- Juliano |
From: <php...@li...> - 2007-09-19 19:22:32
|
Got it, turns out my editor wasn't saving to the original Options.php. My bad, sorry for the spam. Shahin On 9/19/07, ssa...@uc... <ssa...@uc...> wrote: > > Note that I also changed define ("JAVA_HOSTS", "127.0.0.1:8080"); to > define ("JAVA_HOSTS", "127.0.0.1:8081"); in the Options.php in Apache's > htdocs/java/ with no luck. > > Shahin > > On 9/19/07, ssa...@uc... < ssa...@uc...> wrote: > > > > Hello, > > > > I've placed JavaBridge.war in Tomcat's webapps dir, and test.php and > > java/ are in Apache's htdocs. Apache is on localhost:8080, and Tomcat is on > > localhost:8081. http://localhost:8080/test.php gives me phpinfo() > > output, but directly below I get: > > > > protocol error: Method Not Allowed > > The requested method PUT is not allowed for the URL > > /JavaBridge/JavaBridge.phpjavabridge. > > , Internal error at col 4 > > > > I get the same output for http://localhost:8081/JavaBridge/test.php , > > and the Session and php Numberguess examples give me the same error. What > > am I doing wrong? > > > > I also tried the above with JavaBridge.jar and php-servlet.jar in > > Tomcat's shared/lib dir. > > > > Thanks in advance for your help. > > > > Shahin > > > > |
From: <php...@li...> - 2007-09-19 19:13:00
|
Note that I also changed define ("JAVA_HOSTS", "127.0.0.1:8080"); to define ("JAVA_HOSTS", "127.0.0.1:8081"); in the Options.php in Apache's htdocs/java/ with no luck. Shahin On 9/19/07, ssa...@uc... <ssa...@uc...> wrote: > > Hello, > > I've placed JavaBridge.war in Tomcat's webapps dir, and test.php and java/ > are in Apache's htdocs. Apache is on localhost:8080, and Tomcat is on > localhost:8081. http://localhost:8080/test.php gives me phpinfo() output, > but directly below I get: > > protocol error: Method Not Allowed > The requested method PUT is not allowed for the URL > /JavaBridge/JavaBridge.phpjavabridge. > , Internal error at col 4 > > I get the same output for http://localhost:8081/JavaBridge/test.php , and > the Session and php Numberguess examples give me the same error. What am I > doing wrong? > > I also tried the above with JavaBridge.jar and php-servlet.jar in Tomcat's > shared/lib dir. > > Thanks in advance for your help. > > Shahin > |
From: <php...@li...> - 2007-09-19 17:24:53
|
Hello, I've placed JavaBridge.war in Tomcat's webapps dir, and test.php and java/ are in Apache's htdocs. Apache is on localhost:8080, and Tomcat is on localhost:8081. http://localhost:8080/test.php gives me phpinfo() output, but directly below I get: protocol error: Method Not Allowed The requested method PUT is not allowed for the URL /JavaBridge/JavaBridge.phpjavabridge. , Internal error at col 4 I get the same output for http://localhost:8081/JavaBridge/test.php, and the Session and php Numberguess examples give me the same error. What am I doing wrong? I also tried the above with JavaBridge.jar and php-servlet.jar in Tomcat's shared/lib dir. Thanks in advance for your help. Shahin |
From: <php...@li...> - 2007-09-14 09:02:02
|
Hi, > PHP scripts, the protocol also enables access of PHP scripts from within Java > classes. However, I have not found any documentation or examples which please re-read the INSTALL.J2SE document. If you double-click on test.bat or test.sh, version 4.2 starts a test Java web server which allows you to run any JSR223 script engine. Regards, Jost Boekemeier __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever |
From: <php...@li...> - 2007-09-13 20:44:59
|
Dear php/Java bridge developers I would like to implement Java classes that use php/Java bridge to access functions of existing PHP scripts. The homepage of php/Java bridge states that besides accessing Java classes in PHP scripts, the protocol also enables access of PHP scripts from within Java classes. However, I have not found any documentation or examples which explain how this can be achieved. I would be grateful if you gave me some tips or point to any resources regarding this. Yours Ferdinand Tatzig |
From: <php...@li...> - 2007-09-11 18:22:19
|
Hi, > solution. I am unsure of where I should put all my jar files and my conf files and dictionary > dir. please re-read the "libraries" section from the README and FAQ; the libs belong to WEB-INF/lib, if you want to create a distributable web application or into {php.java.bridge.base}/lib, if you want to use the standalone application. The conf files should go into a jar file or into {php.java.bridge.base}/lib or WEB-INF/classes. Temporary files should go into a directory within java.io.tempdir. Please see the Java system properties php.java.bridge.base, java.io.tmpdir and java.ext.dirs. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail |
From: <php...@li...> - 2007-09-11 13:25:55
|
Hi, I've written a Java app that uses a couple of external Jar libraries : = lucene, commons-logging and jwnl (Java WordNet library). This wordnet = library also requires some conf files and a dictionary directory. The Java part of this app work perfectly but now I wish to call a Java = method from a php environment. I've successfully installed the Java/php = bridge following this guide http://www.dsl.uow.edu.au/~sk33/php5java.htm When i test the bridge with the helloworld app, it works. However, I've = been trying to figure out how to get my own Java project to work for a = few days now and I can't seem to find the solution. I am unsure of where = I should put all my jar files and my conf files and dictionary dir. I = tried putting everything in my htdocs, but that didn't work. Placing the = libraries in the php/ext dir doesnt do the trick either. Packing = everything in one jar doesn't work. I'm running out of idea's and can't = find documentation that describes how I should handle this. Any help is more then welcome. |
From: <php...@li...> - 2007-09-11 13:23:24
|
> Why don't you simply put the code in a procedure and invoke > it when needed? Sure - it's a bit unusal though, to include stuff this way, but it would work. Frankly, I don't quite understand why there is such unexpected and strong reluctance to accept my proposed tiny, tiny modification. Just change lines 5-7 from: ... $version = phpversion(); if ((version_compare("5.1.2", $version(), ">"))) { $msg = '<br><strong>PHP '.$version.' too old.</strong>... ... to: ... if ((version_compare("5.1.2", phpversion(), ">"))) { $msg = '<br><strong>PHP '.phpversion().' too old.</strong>... ... and then there won't be any more such trouble (and also no special "style" or wrapper necessary to include the bridge necessary). Take it or leave it... Michael |
From: <php...@li...> - 2007-09-11 12:11:47
|
Hello! Why don't you simply put the code in a procedure and invoke it when needed? For example: <?php $version=3.14; function func(){ include("http://localhost:8080/JavaBridge/java/Java.inc"); } func(); $s = new java("java.lang.String", "hello"); echo $s; echo " "; echo $version; ?> should display hello 3.14. Peter --------------------------------- Pinpoint customers who are looking for what you sell. |