PHP - REPGEN description |
|
|
PHP - REPGEN program generates PDF-reports based on data, created by an SQL-statement. This program generates PDF-reports based on data, created by an SQL-statement.
It consists of two parts: - The HTML-Definition of the report - and the print-machine, which creates the PDF-printout. This program is based on PHP 4.05, mysql 3.23 or ODBC or Postgresql.
The files with the extension '*.inc' should be included in the include-path of PHP (set './;' in php.ini!)
The constant REPGENDIR in the file 'repgen_const.inc' points to the directory, where the *.php - programs are stored (should be under the directory htdocs).
REPGENDIR has now the value 'repgen', so the programs are assumed to be in the directory 'htdocs/repgen/'.
If you want the program to work in another language, copy the file repgen_const_.inc over repgen_const.inc.
There is only german and english ('repgen_const_german.inc' and 'repgen_const_english.inc').
The creation of an report is produced by calling:
'create_report($database, $host, $user, $password, $id)' of 'repgen.inc'.
$id is the id-number of the report, the other values are used for the connection to the database. With reports.sql you can create the databeports' and the definitioand the definition of a test report.
|
|