Jose Diaz-Gonzalez
Using PHP within a GlassFish Server
While working on a related project, we've developed a working
version of PHP within a GlassFish server. This is incredibly useful as
it will allow developers to potentially scale their PHP applications,
as well as allowing all the benefits of a GlassFish server. The
implementation utilizes PHP via Java Bridge, and as such each version
of PHP may have different functionality; standardized, fully-featured
PHP compiles are in the pipeline. Currently tested as working on
Solaris and some OS X machines, with PHP compiled but not tested within
Linux and Windows. However, we'd like to increase that to all
platforms, so any bug reports are appreciated.
Source Code can
be checked out via SVN at the following link, as well as the wiki and
issue tracker. This is still a work in progress and more features and
various improvements will follow soon.
http://kenai.com/projects/glassfishresources
Hopefully I'm not jumping the gun, but I would really like some feedback and quality control. :-)
Posted at 05:39AM Nov 04, 2008 by Jose Diaz-Gonzalez in Sun | Comments[2]
I am curious. Are you talking about a PHP application on GlassFish that uses Java-PHP bridge? Or it is some generic PHP application development framework based on Java-PHP bridge?
Posted by Vivek Pandey on November 06, 2008 at 06:22 PM PST #
When creating this, it was found that linking to an outside PHP binary was difficult in certain cases, or just impossible depending upon server-side settings. Also, you couldn't really bring a PHP application within GlassFish to multiple architectures and expect a normal deploy. It required rebuilding of PHP binaries to the same exact specifications. Both are annoyances.
This merely allows you to bundle your PHP application within the GlassFish server and replicate the install across platforms. So you can offer a multiplatform solution. Useful in cases where you have a PHP application in Netbeans that has been traditionaly been deployed in Solaris but for whatever reason the customer would like a Linux or Windows solution with the same featureset.
It's not an application or framework, merely an extension to a platform. A very useful one,
though.
Posted by Jose Diaz-Gonzalez on November 12, 2008 at 12:15 AM PST #