如何从PHP连接ireports

I am developing a web application with PHP and MySQL. Now I am facing problem with selecting the reporting tool. I am developing in Windows XP environment. But the hosting server is Linux. Therefore I have selected iReports as it has Linux version too.

I want at the clicking of a button from front end (which is written in PHP), the Jasper report should be generated. But how can I connect iReport with PHP code?

I have learnt that iReport can connect MySQL with JasperServer (Don't know yet, how) but need help to connect it from PHP front end.

Once you're hosting reports on the server, you could check out the PHP REST client on the JasperForge website.

Using this package, you could display a report from the server as follows:

<?php
require_once('client/JasperClient.php');

$jc = new Jasper\JasperClient('hostname', '8080', 'username', 'password', 
                              '/jasperserver');
$report = $jc->runReport('/location/of/report/in/repository', 'html');

echo $report;
?>

There are some docs that are packaged with the client that should be useful as well.

I use JasperServer CE to generate a report designed from iReport. I use the PHP code here to makes a SOAP request to the JasperServer.