Using PHP with Java (
Page 1 of 7 )
You probably already know that PHP comes with extensions for a
wide variety of different technologies. But did you know that you could
hook PHP up to Java, and use Java classes and Java Beans from within
your PHP scripts? If this is news to you, keep reading.One of the coolest things about PHP has to be the wide range of extensions
available for the language. Having problems communicating with a particular
database? PHP has a wide range of extensions for different databases. Want to
process credit cards transactions? PHP includes an extension that allows you to
integrate CyberMUT on your Web site. Want to parse and transform XML documents?
PHP comes with a built-in SAX parser and XSLT engine.
The moral of the
story? You can do a lot of very interesting things with PHP. And one of the more
interesting ones includes hooking PHP up to Java and accessing Java classes in a
PHP script. Which, coincidentally, happens to be just what this article is
about.