i-net Clear Reports

PHP Readme - How to run the PHP sample

The following installation instructions work on Unix-based operating
systems only where PHP and Apache are installed; i.e.: MacOS X, Solaris,
Linux, BSD etc. For a Windows based script engine please see the
Windows/ASP example.

  • Install a Java VM (JDK 1.5.x) if it is not installed.
  • Install i-net Clear Reports with the setup tool as Standalone Server.

Installation for Apache / PHP 5.x

Before you can use i-net Clear Reports with PHP 5 you need to install the PHP java bridge, finding it under http://php-java-bridge.sourceforge.net/

Installing the PHP/Java Bridge

  1. Download the PHP Bridge archive
  2. Extract the archive and deploy the JavaBridge.war file to an application server. e.g. Tomcat
  3. Verify the installation by browsing to http://localhost:<port of the application server>/JavaBridge and run the PHP and JSP examples.

Setting up the classpath

To use i-net Clear Reports with the PHP-Java Bridge you must tell the bridge, where it can find the classes of i-net Clear Reports. There are various ways to do it. All possible ways are described in the FAQs of the PHP-Java Bridge (http://php-java-bridge.sourceforge.net/pjb/FAQ.html). The easiest way is to put the classes to the classpath of the application server.

Now you have installed the PHP/Java Bridge.

Installing the i-net Clear Reports

  1. Create a directory in the apache document root. For example: “ClearReports”
  2. Copy the crystalclear directory from the i-net Clear Reports installation and from the PHP sample directory to the apache document root.
  3. Copy the PHP scripts in the Sample/PHP directory and the samples.rpt in the Samples directory to the created directory in the apache document root. Be sure that 'allow_url_inlude' is enabled in the php.ini file.
  4. Restart the Apache server with the command:
    service httpd restart
  5. Now start the browser of your choice and visit: http://<ApacheHost>/ClearReports/Sample.php

i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to clearreports@inetsoftware.de.

 

© Copyright 1996 - 2012, i-net software; All Rights Reserved.