|
From: <php...@li...> - 2008-03-06 09:26:48
|
Hi all,
I have been using PHP/Java bridge for a while, I guess a lot ppl might have
the similar feeling as me about it which is once it's set up properly, it
works great:)
I have installed v4, and v5.0 from source on different platforms, without
tomcat or servlet, and none of them required me to have a line like
"require_once('Java.inc')" in my php scripts. Although I did notice that in
the FAQ (in the source package) it does say "Java.inc must be included
before it can be used", it worked well for me without that line and I took
it that "it" in that claim must be meaning something else:)
Everything was fine until today when I started using 5.2. I did the same
configuration as I did before, and it seems it's started properly (from
phpinfo()), but this time it didn't do the trick, without that line I
couldn't use anything starting with "java", like "java_require()", it keeps
saying "*Fatal error*: Call to undefined function java_require()". So I
copied Java.inc in the source package to my script directory and added that
line, everything started working again.
So anyone could please explain why I didn't need Java.inc but now I have to
have it? If I do need it, where is the best place to find it and to store
it, in other words, will it change over time? why did the installation
script not copy it to a proper directory? Maybe for ppl using tomcat or
servlet, they can extract it from JavaBridge.jar, isn't it troublesome for
ppl without them?
Thanks.
Rong
|