From: <php...@li...> - 2006-11-28 19:03:40
|
I have installed: Apache HTTP Server 2.0.59 PHP 5.2.0 JDK 1.5.0_09 and trying to install PHP-JAVA bridge v3.1.8 - with no success :( Here is exactly what I did (what I think should make the Bridge work): 1) Extracted the JavaBridge archive, and then extracted JavaBridge.war. 2) Copied WEB-INF/lib to my PHP extensions directory (e.g. c:\php5\ext) and then copied WEB-INF/cgi/java-x86-windows.dll to my PHP extensions directory. 3) Renamed the dll to php_java.dll 4) Added the following lines to php.ini : extension_dir = "C:/php5/ext" extension=php_java.dll [java] java.java = "C:/Program Files/Java/jdk1.5.0_09/jre/bin/javaw" java.java_home = "C:/Program Files/Java/jdk1.5.0_09" java.log_level = 2 java.log_file = "C:/php5/log/java-bridge.log" 5) Then, I restarted Apache, and executed a php-info file from my web-servable directory ( phpinfo();). In the page, I can not see the Java table (no Java table at all). When I tried to run some java classes from php, I got nothing. (There is an error logged in apache's error-log, saying that the PHP was unable to load/find specified module [I dont remember the exact form of the error-log, I am not sitting at the concerned machine]). Can someone help me please? Im running desperate now... :(( Thank you. John |
From: <php...@li...> - 2006-11-29 05:43:19
|
java bridge is ok when i use php <5.2 now i use 5.2, java birdge is error. 2006/11/29, php...@li... < php...@li...>: > > I have installed: > Apache HTTP Server 2.0.59 > PHP 5.2.0 > JDK 1.5.0_09 > > and trying to install PHP-JAVA bridge v3.1.8 - with no success :( > > Here is exactly what I did (what I think should make the Bridge work): > > 1) Extracted the JavaBridge archive, and then extracted JavaBridge.war. > 2) Copied WEB-INF/lib to my PHP extensions directory (e.g. c:\php5\ext) > and > then copied WEB-INF/cgi/java-x86-windows.dll to my PHP extensions > directory. > 3) Renamed the dll to php_java.dll > 4) Added the following lines to php.ini : > > extension_dir = "C:/php5/ext" > extension=php_java.dll > > [java] > java.java = "C:/Program Files/Java/jdk1.5.0_09/jre/bin/javaw" > java.java_home = "C:/Program Files/Java/jdk1.5.0_09" > java.log_level = 2 > java.log_file = "C:/php5/log/java-bridge.log" > > 5) Then, I restarted Apache, and executed a php-info file from my > web-servable directory ( phpinfo();). > In the page, I can not see the Java table (no Java table at all). When > I tried to run some java > classes from php, I got nothing. (There is an error logged in apache's > error-log, saying that the > PHP was unable to load/find specified module [I dont remember the > exact form of the error-log, I am > not sitting at the concerned machine]). > > > Can someone help me please? Im running desperate now... :(( > Thank you. > > John > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > -- regards jl |
From: <php...@li...> - 2006-11-29 14:40:45
|
How can I download the source for version 3.0.7? Dennis Christopher Burlington, Ontario |
From: <php...@li...> - 2006-11-30 19:19:28
|
Hi, > How can I download the source for version 3.0.7? I don't think this is possible. The only archived versions are 1.0.8, 2.0.8, 3.0.8, 3.1.8 and 3.2.1. Why do you need this version? However, you can always get the source directly from the appropriate CVS trunc. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-11-30 19:16:19
|
Hi, > java bridge is ok when i use php <5.2 > now i use 5.2, java birdge is error. Doesn't require_once("java/Java.php"); work as expected? Which error do you get? Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-12-01 14:52:04
|
if java birdge is configed ok...we can see its status from "<?php echo phpinfo(); ?>" now i can't find it. i use newest xampp(with php 5.2) and download java bridge from site. 2006/12/1, php...@li... < php...@li...>: > > Hi, > > > > java bridge is ok when i use php <5.2 > > now i use 5.2, java birdge is error. > > Doesn't > > require_once("java/Java.php"); > > work as expected? > > Which error do you get? > > > Regards, > Jost Boekemeier > > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- regards jl |
From: <php...@li...> - 2006-12-02 15:21:36
|
Hi, this is probably a misunderstanding. Since PHP 5.2 no java extension is necessary anymore. Everything necessary is built into PHP 5.2. Of course it is possible to compile a php_java.dll for your operating system and your PHP ABI version. But compiling an unnecessary extension module for each new ABI version is a waste of time, imho. > if java birdge is configed ok...we can see its > status from "<?php echo phpinfo(); ?>" I don't think so. phpinfo() only displays the extension modules, and only those modules which have a minfo() function. > now i can't find it. Yes. There's nothing wrong with it. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-12-04 05:19:17
|
2006/12/2, php...@li... < php...@li...>: > > Hi, > > this is probably a misunderstanding. Since PHP 5.2 no > java extension is necessary anymore. Everything > necessary is built into PHP 5.2. > > Of course it is possible to compile a php_java.dll for > your operating system and your PHP ABI version. But > compiling an unnecessary extension module for each new > ABI version is a waste of time, imho. "Since PHP 5.2 no java extension is necessary anymore." You means we can connect with lucene by PHP 5.2? If yes,,,can you show me how ? > if java birdge is configed ok...we can see its > > status from "<?php echo phpinfo(); ?>" > > I don't think so. phpinfo() only displays the > extension modules, and only those modules which have a > minfo() function. > > > > now i can't find it. > > Yes. There's nothing wrong with it. I configued java bridge when i use php5.13 and i can find it from phpinfo. But now i use php5.2 and i can't find it. I think Java Bridge is extension module , isn't it? Regards, > Jost Boekemeier > > > > > > > > ___________________________________________________________ > Der fr=FChe Vogel f=E4ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Ma= il: > http://mail.yahoo.de > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > --=20 regards jl |
From: <php...@li...> - 2006-12-04 10:28:13
|
Hi! We use something like: require_once("java/Java.php"); java_require("lucene.jar"); $q = new Java("org.apache.lucene.search.PhraseQuery"); $q->add(new Java("org.apache.lucene.index.Term", $t, $where)); $searcher = new Java("org.apache.lucene.search.IndexSearcher", $dir); $hits = $searcher->search($q); ... "Since PHP 5.2 no java extension is necessary anymore." You means we can connect with lucene by PHP 5.2? If yes,,,can you show me how ? --------------------------------- Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. |
From: <php...@li...> - 2006-12-04 21:13:00
|
Hi, > "Since PHP 5.2 no java extension is necessary > anymore." > You means we can connect with lucene by PHP 5.2? > If yes,,,can you show me how ? Please see http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/examples/search/lucene_search.php?view=markup > I think Java Bridge is extension module , isn't it? Not really. It's a network protocol, please see http://php-java-bridge.sourceforge.net/ for details. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-12-04 20:55:31
|
I am attempting to build 3.0.7a from source on Mac OS X (10.4.8) and am following closely Clark Freifeld's post from June-- "Installing php-java-bridge on Mac OS X (10.4.6) G5 PPC, from source." I am getting a gcc error when I execute the phpize, configure etc command: phpize && ./configure --with-java=$JAVA_HOME && make namely /opt/local/etc/php-java-bridge-3.0.7a/java.c: In function 'zm_startup_java': /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: 'zif_java___call' undeclared (first use in this function) java.c is the first file it attempts to compile. Perhaps Clark or someone who has done this could make a suggestion. |
From: <php...@li...> - 2006-12-04 21:08:39
|
Hi, I would suggest running all of the build statements separately so you can better dubug your build. Here are my build steps from Mac OS X 10.4.8: 1) www:/www/php-java-bridge-3.1.8 jkoerber$ /usr/local/php5/bin/ phpize (must run phpize from your active php5 directory) 2) Set up the env variable to tell the build where Java is on the Mac: www:/www/php-java-bridge-3.1.8 jkoerber$export JAVA_HOME=/System/ Library/Frameworks/JavaVM.framework/Home 3) www:/www/php-java-bridge-3.1.8 jkoerber$ ./configure --with-java= $JAVA_HOME 4) www:/www/php-java-bridge-3.1.8 jkoerber$ make 5) www:/www/php-java-bridge-3.1.8 jkoerber$ sudo sh install.sh (instead of make install) This seems to work well for me on Mac OSX Tiger client and on Server. Good luck. Jon Koerber On Dec 4, 2006, at 12:55 PM, php-java-bridge- us...@li... wrote: > I am attempting to build 3.0.7a from source on Mac OS X (10.4.8) > and am following closely Clark Freifeld's post from June-- > > "Installing php-java-bridge on Mac OS X (10.4.6) G5 PPC, from source." > > I am getting a gcc error when I execute the > phpize, configure etc command: > > phpize && ./configure --with-java=$JAVA_HOME && make > > namely > > /opt/local/etc/php-java-bridge-3.0.7a/java.c: In function > 'zm_startup_java': > /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: > 'zif_java___call' undeclared (first use in this function) > > java.c is the first file it attempts to compile. > > Perhaps Clark or someone who has done this could > make a suggestion. > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2006-12-05 15:05:16
|
Thanks Jon. I have tried factoring the cmd into parts. phpize seems to work. the configure command produces many very similar blocks like this: cd . && /bin/sh ./config.status Makefile depfiles config.status: creating Makefile config.status: executing depfiles commands make[2]: *** No rule to make target `ltmain.sh'. Stop. checking for ANSI C header files... (cached) yes checking.... . . with the checking statements continuing. Is this a problem? The command completes with no summary error. the 3rd and final command, make, quickly bails with the error on its first compile attempt (java.c): /bin/sh /opt/local/etc/php-java-bridge-3.0.7a/libtool --mode=compile gcc -DEXTENSION_DIR="\"/usr/local/php5/lib/php/extensions/no-debug- non-zts-20060613\"" -I. -I/opt/local/etc/php-java-bridge-3.0.7a - DPHP_ATOM_INC -I/opt/local/etc/php-java-bridge-3.0.7a/include -I/opt/ local/etc/php-java-bridge-3.0.7a/main -I/opt/local/etc/php-java- bridge-3.0.7a -I/usr/local/php5/include/php -I/usr/local/php5/include/ php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/ php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/ php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/local/etc/php- java-bridge-3.0.7a/java.c -o java.lo gcc -DEXTENSION_DIR=\"/usr/local/php5/lib/php/extensions/no-debug-non- zts-20060613\" -I. -I/opt/local/etc/php-java-bridge-3.0.7a - DPHP_ATOM_INC -I/opt/local/etc/php-java-bridge-3.0.7a/include -I/opt/ local/etc/php-java-bridge-3.0.7a/main -I/opt/local/etc/php-java- bridge-3.0.7a -I/usr/local/php5/include/php -I/usr/local/php5/include/ php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/ php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/ php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/local/etc/php-java- bridge-3.0.7a/java.c -fno-common -DPIC -o .libs/java.o /opt/local/etc/php-java-bridge-3.0.7a/java.c: In function 'zm_startup_java': /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: 'zif_java___call' undeclared (first use in this function) /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: (Each undeclared identifier is reported only once /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: for each function it appears in.) /opt/local/etc/php-java-bridge-3.0.7a/java.c:1966: error: 'zif_java___get' undeclared (first use in this function) /opt/local/etc/php-java-bridge-3.0.7a/java.c:1967: error: 'zif_java___set' undeclared (first use in this function) /opt/local/etc/php-java-bridge-3.0.7a/java.c:1977: warning: assignment from incompatible pointer type /opt/local/etc/php-java-bridge-3.0.7a/java.c:1981: warning: assignment from incompatible pointer type make: *** [java.lo] Error 1 Any notion of which include it is missing? Dennis On 4-Dec-06, at 4:08 PM, php...@li... wrote: > Hi, > > I would suggest running all of the build statements separately so > you can better dubug your build. Here are my build steps from Mac > OS X 10.4.8: > > 1) www:/www/php-java-bridge-3.1.8 jkoerber$ /usr/local/php5/bin/ > phpize (must run phpize from your active php5 directory) > 2) Set up the env variable to tell the build where Java is on the > Mac: www:/www/php-java-bridge-3.1.8 jkoerber$export JAVA_HOME=/ > System/Library/Frameworks/JavaVM.framework/Home > 3) www:/www/php-java-bridge-3.1.8 jkoerber$ ./configure --with-java= > $JAVA_HOME > 4) www:/www/php-java-bridge-3.1.8 jkoerber$ make > 5) www:/www/php-java-bridge-3.1.8 jkoerber$ sudo sh install.sh > (instead of make install) > > This seems to work well for me on Mac OSX Tiger client and on Server. > > Good luck. > > Jon Koerber > > > On Dec 4, 2006, at 12:55 PM, php-java-bridge- > us...@li... wrote: > >> I am attempting to build 3.0.7a from source on Mac OS X (10.4.8) >> and am following closely Clark Freifeld's post from June-- >> >> "Installing php-java-bridge on Mac OS X (10.4.6) G5 PPC, from >> source." >> >> I am getting a gcc error when I execute the >> phpize, configure etc command: >> >> phpize && ./configure --with-java=$JAVA_HOME && make >> >> namely >> >> /opt/local/etc/php-java-bridge-3.0.7a/java.c: In function >> 'zm_startup_java': >> /opt/local/etc/php-java-bridge-3.0.7a/java.c:1965: error: >> 'zif_java___call' undeclared (first use in this function) >> >> java.c is the first file it attempts to compile. >> >> Perhaps Clark or someone who has done this could >> make a suggestion. >> >> >> --------------------------------------------------------------------- >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys - and earn >> cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV_______________________________ >> ________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2006-12-08 14:08:09
|
Hi, you can't compile php-java-bridge-3.0.7a against the new 20060613 API. I think that's why Jon suggested to use php-java-bridge-3.1.8 instead. :) --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. |