|
From: <php...@li...> - 2007-05-08 14:32:34
|
I have looked at several examples of how to install PHP-JavaBridge, however there seems to be one piece missing, and that piece is the java-x86-windows.dll file. From what I have been told the java-x86-windows.dll is located in the JavaBridge.war file, along with the jar. I have found everything else except that last file. Can someone point me in the correct direction of where that file is hiding. Thanks |
|
From: <php...@li...> - 2007-05-08 14:41:20
|
> however there seems to be one piece missing, and > that piece is the > java-x86-windows.dll file. the legacy php-java.dll files for PHP versions <= 5.1.4 are available from the dowload area: => http://sourceforge.net/project/downloading.php?group_id=117793&use_mirror=switch&filename=php-java-bridge-legacy.zip&35771915 ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
|
From: <php...@li...> - 2007-05-08 14:54:41
|
Well is there an issue with the java wrapper and PHP 5.2? I just tried to downgrade the PHP to 5.1.6, seems that the PHP archives dont have the Window binary download for anything archived. On 5/8/07, php...@li... <php...@li...> wrote: > > however there seems to be one piece missing, and > > that piece is the > > java-x86-windows.dll file. > > the legacy php-java.dll files for PHP versions <= > 5.1.4 are available from the dowload area: > > => > http://sourceforge.net/project/downloading.php?group_id=117793&use_mirror=switch&filename=php-java-bridge-legacy.zip&35771915 > > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2007-05-08 17:52:18
|
> Well is there an issue with the java wrapper and PHP > 5.2? If you can compile C code, you can compile a php_java.dll yourself. See the FAQ for details. > tried to downgrade the PHP to 5.1.6, seems that the Isn't that backwards? Why don't you use php 5.2.x instead? If you use a modern PHP implementation, the old C crap~--~err, sorry C-code~--~isn't needed anymore. The pure PHP/Java implementation works on all architectures and operating systems. ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
|
From: <php...@li...> - 2007-05-12 07:18:44
|
Could someone suggest how to convert php timestamp to java timestamp?
This was how I created timestamp on php page
$startDate =3D new Java('java.sql.Timestamp', =
gmmktime(0,0,0,10,3,2007));
echo (String) $startDate;
$endDate =3D new Java('java.sql.Timestamp', time());
echo "<br>";
echo (String) $endDate;
The following timestamps displayed on the browser
1970-01-14 10:56:09.6
1970-01-14 07:29:12.32
And on the server sides, java stimestamp displayed=20
1970-01-14 10:56:09.6
1970-01-14 07:29:13.872
The year was 1970. =20
|
|
From: <php...@li...> - 2007-05-12 17:30:03
|
Hi,
> $startDate = new Java('java.sql.Timestamp',
> gmmktime(0,0,0,10,3,2007));
> $endDate = new Java('java.sql.Timestamp', time());
> 1970-01-14 10:56:09.6
> 1970-01-14 07:29:12.32
depending on what gmmktime() and time() return, the
above results are correct. Both, time() and gmmktime()
must return a java.lang.long, a 64bit value
representing the seconds since some time in the
history. Please see the sql.Timestamp API
documentation for details.
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-05-12 17:45:13
|
> must return a java.lang.long, a 64bit value
One can create such a java.lang.long value with e.g.:
new java("java.lang.Long", "14098922");
or
java("java.lang.System")->currentTimeMillis();
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-05-12 20:39:17
|
Thanks for the prompt reply, Jost.
The issue I am facing with is that time() or gmmktime() returns unix
timestamp with just 10 digits e.g. 1178999783 whereas, java timestamp is
expecting 13 digits. Assume time() returned 1178999783, I believe this
php line=20
Java('java.sql.Timestamp', time());
Is equivalent to this line in java
new Timestamp(0001178999783);
As the result, the timestamp became incorrect on my back end server.
My temporary resolution was to multiply whatever returned by php time()
by 1000. What is your suggestion?
Thanks=20
-----Original Message-----
From: php...@li...
[mailto:php...@li...] On Behalf
Of php...@li...
Sent: Saturday, May 12, 2007 10:30 AM
To: php...@li...
Subject: Re: [Php-java-bridge-users] php to java timestamp
Hi,
> $startDate =3D new Java('java.sql.Timestamp',
> gmmktime(0,0,0,10,3,2007));
> $endDate =3D new Java('java.sql.Timestamp', time());
> 1970-01-14 10:56:09.6
> 1970-01-14 07:29:12.32
depending on what gmmktime() and time() return, the
above results are correct. Both, time() and gmmktime()
must return a java.lang.long, a 64bit value
representing the seconds since some time in the
history. Please see the sql.Timestamp API
documentation for details.
Regards,
Jost Boekemeier
__________________________________ Yahoo! Clever - Der einfachste
Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen.
www.yahoo.de/clever
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2007-05-12 21:48:37
|
Jost, On the linux platform, I need to start the standalone client twice to change java status. The first time, I started it. java -Djava.library.path=3D/usr/local/lib/php/extensions/no-debug-non-zts-2005= 0 922 -Djava.class.path=3D/usr/local/lib/php/extensions/no-debug-non-zts-200509= 2 2/JavaBridge.jar -Djava.awt.headless=3Dtrue -Dphp.java.bridge.base=3D/usr/local/lib/php/extensions/no-debug-non-zts-2= 0 050922 php.java.bridge.Standalone LOCAL:@java-bridge-50ab 5 /usr/local/log/bridge.log @@java-bridge-50ab JavaBridge log: /usr/local/log/bridge.log I checked the java status, it was 'not running' I then, start standalone client the second time,=20 java -Djava.library.path=3D/usr/local/lib/php/extensions/no-debug-non-zts-2005= 0 922 -Djava.class.path=3D/usr/local/lib/php/extensions/no-debug-non-zts-200509= 2 2/JavaBridge.jar -Djava.awt.headless=3Dtrue -Dphp.java.bridge.base=3D/usr/local/lib/php/extensions/no-debug-non-zts-2= 0 050922 php.java.bridge.Standalone LOCAL:@java-bridge-50ab 5 /usr/local/log/bridge.log system error: could not bind socket: Address already in use @9267 JavaBridge log: /usr/local/log/bridge.log=20 On the second time, although I got system error: Address already in use, the java status changed to 'running' Ps -ef | grep java --> I saw two identical standalone clients were running. Also, I deployed my app jars under /usr/local/lib/php/extensions/no-debug-non-zts-20050922/ and also log4j.properties under the same directory. In my app jars, I had codes logging and tracing data, but I could not find these logging data. Could you let me know how to I log data to the file bridge.log. Best regards, Joe |
|
From: <php...@li...> - 2007-05-13 12:34:07
|
Hi,
> On the linux platform, I need to start the
> standalone client twice to
> change java status.
you can run as many clients as you want. For example:
java -jar JavaBridge.jar INET:9090 3 jb1.log &
java -jar JavaBridge.jar INET:9091 3 jb2.log &
Your php.ini should look like:
java.hosts="127.0.0.1:9090 127.0.0.1:9091"
java.servlet=Off
Please see the java.hosts description for details.
Regards,
Jost Boekemeier
__________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-05-16 17:05:45
|
you can run as many clients as you want. For example:
java -jar JavaBridge.jar INET:9090 3 jb1.log &
java -jar JavaBridge.jar INET:9091 3 jb2.log &
Suppose I want to start two clients as you suggested and alternate
invoking the client on port 9090 and then 9091, How do I config the
bridge to achieve this?
-----Original Message-----
From: php...@li...
[mailto:php...@li...] On Behalf
Of php...@li...
Sent: Sunday, May 13, 2007 5:34 AM
To: php...@li...
Subject: Re: [Php-java-bridge-users] Running standalone client twice
tochange java status to running
Hi,
> On the linux platform, I need to start the
> standalone client twice to
> change java status.
you can run as many clients as you want. For example:
java -jar JavaBridge.jar INET:9090 3 jb1.log &
java -jar JavaBridge.jar INET:9091 3 jb2.log &
Your php.ini should look like:
java.hosts=3D"127.0.0.1:9090 127.0.0.1:9091"
java.servlet=3DOff
Please see the java.hosts description for details.
Regards,
Jost Boekemeier
__________________________________ Yahoo! Clever: Sie haben
Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2007-05-18 11:24:09
|
Hi, > java -jar JavaBridge.jar INET:9090 3 jb1.log & > java -jar JavaBridge.jar INET:9091 3 jb2.log & > > Suppose I want to start two clients as you suggested > and alternate > invoking the client on port 9090 and then 9091, How > do I config the > bridge to achieve this? sorry, I misunderstood your question. The PHP/Java Bridge supports load balancing when you run the back end(s) in a J2EE server or Servlet engine. internet clients...-->..apache+PHP/Java Bridge...->..Tomcat1 ........................................->..Tomcat2 ........................................->..Tomcat3 Please see our documentation at php-java-bridge.sf.net for details how to enable load balancing in Apache/Tomcat. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Stellen Sie Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen. www.yahoo.de/clever |