Home
Analytics
PHP Ajax Viewer
gte451f
Thanks to some recent tutorials from JasonW and others, I've got PHP calling BIRT reports in HTML, PDF and Excel format.
Is it possible to call the BIRT AJAX Viewer in the same way?
Find more posts tagged with
Comments
rmurphy
Jason's article focuses on a programming level integration between a PHP application, and the BIRT Report Engine running in a Java container.<br />
<br />
The typical use of the viewer is to simply pass URLs to the viewer to gernerate and display reports. Assuming this is your use case, I would suggest deploying the birt.war to Tomcat and setting up mod_jk to forward requests from your PHP app running on Apache to Tomcat. <br />
<br />
You can read more about how to setup mod_jk here:<br />
<a class='bbc_url' href='
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html'>The
Apache Tomcat Connector - Webserver HowTo - Apache HowTo</a><br />
<br />
Once mod_jk is configured, your PHP app can leverage the viewer and all traffic will be tunneled from Apache to Tomcat.<br />
<br />
Rob
gte451f
Thanks for writing back. I'm a little slow so perhaps you can filling in what I am missing.
"Once mod_jk is configured, your PHP app can leverage the viewer and all traffic will be tunneled from Apache to Tomcat."
How is tunneling from Apache to Tomcat helpful?
The direct calls from PHP to the BIRT engine (through the PHP/Java bridge) are neat because I can prevent outside access to reports and force access through a PHP application and the application's underlying security scheme.
Before this, my PHP apps simply held links to public URLs of BIRT report. Anyone can see reports so long as they know the URL.
How can I force access to BIRT reports through a PHP application without giving away URLs that anyone can copy and reuse? Does mod_jk accomplish this?