Hi--
I seem to have the PHP Java Bridge (2.0.5 built from tarball) working with
PHP 5.0.3 (also built from tarball) on my Fedora Core 1 server with Apache
2.0.50 and I'm pretty excited about it all. There are a couple of
configuration issues I've run into that are perplexing me.
First, I can't seem to change the classpath. I've added:
[java]
java.class.path ="/path/here"
to the php.ini file, just as indicated in setup documentation, phpinfo()
still reports only JavaBridge.jar in the classpath in the java section.
Without being able to add to the classpath, I can't access the Java objects
that I've built, so you can see how this could be a problem. =^)
Is there anyone that's set up the Java Bridge with PHP5 and gotten it
working? Obviously I'm tinkering in the wrong places.
It occurs to me that maybe the bridge doesn't work at all with .class files
and that in order to use these I'll need to package them in .jar files.
That's just an off-the-wall theory.
I'm a little disappointed in the bridge, although very excited about the
potential. PHP advocates have been talking about "Native Java Support" in
PHP since 2001 and even PHP5 requires some not-insignificant jumping-through
of hoops to add Java-PHP integration. Or is there something I'm totally
missing?
Thanks,
Steve
I seem to have the PHP Java Bridge (2.0.5 built from tarball) working with
PHP 5.0.3 (also built from tarball) on my Fedora Core 1 server with Apache
2.0.50 and I'm pretty excited about it all. There are a couple of
configuration issues I've run into that are perplexing me.
First, I can't seem to change the classpath. I've added:
[java]
java.class.path ="/path/here"
to the php.ini file, just as indicated in setup documentation, phpinfo()
still reports only JavaBridge.jar in the classpath in the java section.
Without being able to add to the classpath, I can't access the Java objects
that I've built, so you can see how this could be a problem. =^)
Is there anyone that's set up the Java Bridge with PHP5 and gotten it
working? Obviously I'm tinkering in the wrong places.
It occurs to me that maybe the bridge doesn't work at all with .class files
and that in order to use these I'll need to package them in .jar files.
That's just an off-the-wall theory.
I'm a little disappointed in the bridge, although very excited about the
potential. PHP advocates have been talking about "Native Java Support" in
PHP since 2001 and even PHP5 requires some not-insignificant jumping-through
of hoops to add Java-PHP integration. Or is there something I'm totally
missing?
Thanks,
Steve
Comment