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
|
2
|
3
|
4
(3) |
|
5
|
6
(4) |
7
(1) |
8
(1) |
9
|
10
(1) |
11
(5) |
|
12
(4) |
13
(1) |
14
(2) |
15
(2) |
16
(1) |
17
|
18
|
|
19
|
20
(4) |
21
(3) |
22
(6) |
23
(1) |
24
(1) |
25
(4) |
|
26
(1) |
27
(2) |
28
(3) |
29
(1) |
30
|
|
|
|
From: <php...@li...> - 2010-09-20 20:42:32
|
probably the decorator resets or reverts your changes. we wlll see On 9/20/10, php...@li... <php...@li...> wrote: > Anyone, Jost, got any thoughts on why this PHP script is not working > as I would expect it to? I am stuck until I can find a solution... > Thanks... Marc.. > > On 9/15/2010 6:31 PM, php...@li... wrote: >> Jost, all - >> >> I have been doing more investigations into why the php-java bridge is >> not working as I would expect, but so far I got no joy in why it is >> failing... So I thought I would send in a concise version of the jsp >> code/file I am trying to set up, and see if you or anyone else can spot >> what I am doing wrong.... (this also shows the interplay between jsp >> variables and the Javascript/PHP scripts, which is why I am choosing to >> use JSP) >> >> What I am discovering, is that as expected the method evalPHP is being >> called (twice). The call to the function - outputJavaScript in my PHP >> script does indeed return a Javascript statement (via the internal call >> to pass_to_php_backend), which is a String variable, and I can in fact >> put an echo statement just before the return and see that the expected >> Javascript statement is produced. But what is NOT happening is that >> this returned string is produced in the output document, at the point of >> call to evalPHP. (I have placed calls to alerts to show this is indeed >> what is happening, as can be seen in the following code.) >> >> Thoughts? Thanks again in advance for helping me with this... Marc... >> >> >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE html >> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> >> <%@ page import="java.io.*" %> >> <%@ page import="org.apache.commons.lang.*" %> >> <%@page import="javax.script.*" %> >> <%@page import="php.java.script.servlet.*" %> >> >> <head> >> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> >> <title>Example</title> >> >> <% >> String url = request.getAttribute("URL").toString(); >> String file = request.getAttribute("DocPath").toString(); >> String docRootDir = file.substring(0, file.lastIndexOf("/")); >> String serverURL = request.getAttribute("ServerURL").toString(); >> String contextPath = "/" + >> request.getAttribute("ContextPath").toString(); >> String Dir = request.getAttribute("Dir").toString(); >> %> >> >> <% >> // My PHP script is defined here.... >> String phpScript = ""; >> phpScript = "require_once '" + Dir + "/java/Java.inc'; \n"; >> phpScript += "require_once '" + Dir + "/contrib/php-utilities.php'; \n"; >> >> phpScript += "function outputJavaScript() { \n"; >> phpScript += "$IMConfig = array(); \n"; >> phpScript += "$IMConfig['images_dir'] = '" + docRootDir + "/images'; \n"; >> phpScript += "$IMConfig['allowed_image_extensions'] = >> array('jpg','gif','png'); \n"; >> phpScript += "return pass_to_php_backend($IMConfig); \n"; >> phpScript += "} \n"; >> >> phpScript += "outputJavaScript(); \n"; >> %> >> >> <%! >> private static final CompiledScript script; >> static { >> try { >> script =((Compilable)(new >> ScriptEngineManager().getEngineByName("php"))).compile( >> "<?php echo eval(java_context()->get('script')); ?>"); >> } catch (ScriptException e) { >> throw new RuntimeException("bleh!"); >> } >> } >> // private static final String evalPHP(String arg) { >> private String evalPHP(String arg, HttpServletRequest request, >> HttpServletResponse response) { >> CompiledScript instance = >> (CompiledScript)((java.security.cert.CertStoreParameters)script).clone(); >> instance.getEngine().put("script", arg); >> OutputStream out = new ByteArrayOutputStream(); >> Writer writer = new OutputStreamWriter(out); >> instance.getEngine().getContext().setWriter(writer); >> instance.getEngine().setContext((ScriptContext)new >> >> PhpCompiledHttpScriptContext(instance.getEngine().getContext(),this,this.getServletContext(),request,response)); >> try { >> instance.eval(); >> } catch (ScriptException e) { >> throw new RuntimeException("bleh!"); >> } >> try { >> writer.close(); >> } catch (IOException e) { >> throw new RuntimeException("bleh!"); >> } >> String result = out.toString(); >> return result; >> } >> %> >> >> >> <script type="text/javascript"> >> url =<%= "\"" + serverURL + "\"" %> +<%= "\"" + contextPath + >> "\"" %>; >> lang = "en"; >> </script> >> >> <!--<script type="text/javascript" src="../Core.js"></script> --> >> <script type="text/javascript" src="Loader.js"></script> >> >> <script type="text/javascript"> >> config = config ? config : new Backend.Config(); >> config.fullPage = true; >> // pass the configuration to plugin >> if (config.FileManager) { >> with (config.FileManager) >> { >> a = "<%= evalPHP(phpScript, request, response) %>"; >> if (a == "") alert("No Output"); >> else { >> alert("Output = " + a); >> <%= evalPHP(phpScript, request, response) %> >> } >> >> } >> } >> }; >> </script> >> </head> >> >> <body> >> <!-- Content of body not important, removed --> >> </body> >> </html> >> >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2010-09-20 20:26:37
|
Anyone, Jost, got any thoughts on why this PHP script is not working as I would expect it to? I am stuck until I can find a solution... Thanks... Marc.. On 9/15/2010 6:31 PM, php...@li... wrote: > Jost, all - > > I have been doing more investigations into why the php-java bridge is > not working as I would expect, but so far I got no joy in why it is > failing... So I thought I would send in a concise version of the jsp > code/file I am trying to set up, and see if you or anyone else can spot > what I am doing wrong.... (this also shows the interplay between jsp > variables and the Javascript/PHP scripts, which is why I am choosing to > use JSP) > > What I am discovering, is that as expected the method evalPHP is being > called (twice). The call to the function - outputJavaScript in my PHP > script does indeed return a Javascript statement (via the internal call > to pass_to_php_backend), which is a String variable, and I can in fact > put an echo statement just before the return and see that the expected > Javascript statement is produced. But what is NOT happening is that > this returned string is produced in the output document, at the point of > call to evalPHP. (I have placed calls to alerts to show this is indeed > what is happening, as can be seen in the following code.) > > Thoughts? Thanks again in advance for helping me with this... Marc... > > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html > PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > <%@ page import="java.io.*" %> > <%@ page import="org.apache.commons.lang.*" %> > <%@page import="javax.script.*" %> > <%@page import="php.java.script.servlet.*" %> > > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <title>Example</title> > > <% > String url = request.getAttribute("URL").toString(); > String file = request.getAttribute("DocPath").toString(); > String docRootDir = file.substring(0, file.lastIndexOf("/")); > String serverURL = request.getAttribute("ServerURL").toString(); > String contextPath = "/" + > request.getAttribute("ContextPath").toString(); > String Dir = request.getAttribute("Dir").toString(); > %> > > <% > // My PHP script is defined here.... > String phpScript = ""; > phpScript = "require_once '" + Dir + "/java/Java.inc'; \n"; > phpScript += "require_once '" + Dir + "/contrib/php-utilities.php'; \n"; > > phpScript += "function outputJavaScript() { \n"; > phpScript += "$IMConfig = array(); \n"; > phpScript += "$IMConfig['images_dir'] = '" + docRootDir + "/images'; \n"; > phpScript += "$IMConfig['allowed_image_extensions'] = > array('jpg','gif','png'); \n"; > phpScript += "return pass_to_php_backend($IMConfig); \n"; > phpScript += "} \n"; > > phpScript += "outputJavaScript(); \n"; > %> > > <%! > private static final CompiledScript script; > static { > try { > script =((Compilable)(new > ScriptEngineManager().getEngineByName("php"))).compile( > "<?php echo eval(java_context()->get('script')); ?>"); > } catch (ScriptException e) { > throw new RuntimeException("bleh!"); > } > } > // private static final String evalPHP(String arg) { > private String evalPHP(String arg, HttpServletRequest request, > HttpServletResponse response) { > CompiledScript instance = > (CompiledScript)((java.security.cert.CertStoreParameters)script).clone(); > instance.getEngine().put("script", arg); > OutputStream out = new ByteArrayOutputStream(); > Writer writer = new OutputStreamWriter(out); > instance.getEngine().getContext().setWriter(writer); > instance.getEngine().setContext((ScriptContext)new > > PhpCompiledHttpScriptContext(instance.getEngine().getContext(),this,this.getServletContext(),request,response)); > try { > instance.eval(); > } catch (ScriptException e) { > throw new RuntimeException("bleh!"); > } > try { > writer.close(); > } catch (IOException e) { > throw new RuntimeException("bleh!"); > } > String result = out.toString(); > return result; > } > %> > > > <script type="text/javascript"> > url =<%= "\"" + serverURL + "\"" %> +<%= "\"" + contextPath + > "\"" %>; > lang = "en"; > </script> > > <!--<script type="text/javascript" src="../Core.js"></script> --> > <script type="text/javascript" src="Loader.js"></script> > > <script type="text/javascript"> > config = config ? config : new Backend.Config(); > config.fullPage = true; > // pass the configuration to plugin > if (config.FileManager) { > with (config.FileManager) > { > a = "<%= evalPHP(phpScript, request, response) %>"; > if (a == "") alert("No Output"); > else { > alert("Output = " + a); > <%= evalPHP(phpScript, request, response) %> > } > > } > } > }; > </script> > </head> > > <body> > <!-- Content of body not important, removed --> > </body> > </html> > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2010-09-20 18:25:22
|
Hi, not if we want to get PHP/Java Bridge 6.2.1 through the release tests, no. Please see http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/tests.php5/session_write_close_bug.php?revision=1.5&content-type=text%2Fplain This problem should be solved on PHP level, please see http://bugs.php.net/bug.php?id=46451 > This was causing > problems with my application by saving the session before I had finished > using it. Why and how do you want to access the session after the evaluator shutdown? Regards, Jost Bökemeier |
|
From: <php...@li...> - 2010-09-20 15:56:14
|
Hi, Is there a way to call the Java Bridge from php so that session_write_close() is NOT called on java shutdown. This was causing problems with my application by saving the session before I had finished using it. I have commented out the offending line in java.inc.php but don't want to have to remember to do this on every upgrade. Regards Ian -- |