From: Bob D. <bd...@si...> - 2007-08-17 20:01:57
|
Hi, You need to do something like: $my_header = split("\n", rlib_get_content_type($rlib)); foreach($my_header as $x) { if($x != '') header($x); } On Thu, 2007-08-02 at 11:17 -0700, Alexandru Gari-Negut wrote: > Hello again, > > I managed to get the example.php running ok with html or text format as the output report format. > It looks like the pdf functionality caused the problem, see below the configure output. Question is now: do I need all the missing modules (Postgres, Python, GD and DB2PDF) or just some of them? > > # ./configure > checking build system type... i686-redhat-linux-gnu > ... > checking for mysql_config... /usr/local/mysql-5.2.3-falcon-alpha-linux-i686-glibc23/bin/mysql_config > checking for pg_config... no > *** WARNING: POSTGRES NOT FOUND IN PATH. RLIB WILL NOT BE COMPILED WITH SUPPORT FOR IT > checking for ODBC files... configure: WARNING: ODBC input method is not going to be used > checking for php-config... /usr/local/bin/php-config > checking for gdlib-config... no > *** WARNING: GD NOT FOUND IN PATH. RLIB WILL NOT BE COMPILED WITH SUPPORT FOR IT > checking for db2pdf... no > *** WARNING: DB2PDF NOT FOUND IN PATH. Sadly the manual won't be built > checking for a Python interpreter with version >= 2.2... python > ... > checking for extension module directory... ${exec_prefix}/lib/python2.4/site-packages > *** WARNING: PYTHON 2.2 NOT FOUND IN PATH. RLIB WILL NOT BE COMPILED WITH SUPPORT FOR IT > ... > config.status: creating config.h > config.status: executing depfiles commands > > rlib-1.3.7: > > prefix: /usr/local > compiler: gcc > Memory debugging: no > Warning Fun: no > Crash detection: yes > UTF8 disabled: yes > WIN32 build: no > Documentation: no > > INPUTS: > MYSQL: yes > POSTGRES: no > ODBC: no > > COMPRESSION: > PDF: yes > > GRAPHING: > PDF: Always > HTML: no > > BINDINGS: > PHP: yes > PHP entension dir: /usr/local/lib/php/extensions/no-debug-non-zts-20050922 > PYTHON: no > PYTHON version: 2.2 > PYTHON entension dir: > JAVA: no > CSHARP: no > PERL: yes > PERL entension dir: /usr/lib/perl5/5.8.8/i386-linux-thread-multi > > ** If you like RLIB send a postcard from where you are in the world to: > ** Bob Doan - 4140 Skyron Drive - Doylestown - PA - 18901 - USA > > Music: Coldplay / Virgin Radio > Having Problems: rli...@li... > Want To Contribute: rli...@li... > Commercial License: rli...@si... > > > ----- Original Message ---- > From: Alexandru Gari-Negut <ale...@ya...> > To: rli...@li... > Cc: rli...@li... > Sent: Thursday, August 2, 2007 8:24:32 PM > Subject: Re: post-install problems with RLIB > > I have also tried to run example.php which comes with rlib installation package (b/m is reffering to the example from the pdf user's manual). > it looks like the data is coming from MySQL but still there are some errors: > > [root@csct-local ~]# mysql -u rlib -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 6 > Server version: 5.2.3-falcon-alpha-log MySQL Community Server (GPL) > > Type 'help;' or '\h' for help. Type '\c' to clear the buffer. > > mysql> use rlib > Database changed > mysql> select * from products; > +----+-------------+--------------------+------+----------+ > | rn | plunum | name | type | category | > +----+-------------+--------------------+------+----------+ > | 1 | 10000000006 | NRS | 9999 | 0 | > | 2 | 10000000008 | food sales | 9999 | 0 | > | 3 | 10000000005 | overring | 9999 | 0 | > | 4 | 10000000007 | refund | 9999 | 0 | > | 5 | 10000000010 | gift cert sales | 9999 | 0 | > | 6 | 10000000011 | other sales | 9999 | 0 | > | 7 | 10000000001 | EI Sales | 9999 | 0 | > | 8 | 10000000002 | TO Sales | 9999 | 0 | > | 9 | 10000000003 | DT Sales | 9999 | 0 | > | 10 | 10000000009 | nonfood sales | 9999 | 0 | > | 11 | 10000000013 | credits issued | 9999 | 0 | > | 12 | 10000000014 | promo sales | 9999 | 0 | > | 13 | 10000000015 | gift cert redeemed | 9999 | 0 | > | 14 | 10000000060 | reserved | 9999 | 0 | > +----+-------------+--------------------+------+----------+ > 14 rows in set (0.00 sec) > > > trying to open example.php in the browser brings the following error (data from products table is clearly within the error body): > > Warning: Header may not contain more than a single header, new line detected. in /var/www/html/rlib/example.php on line 13 > > %PDF-1.3 > 1 0 obj > << > /Type /Pages > /Count 1 > /Kids [ 6 0 R ] > >> > endobj > 2 0 obj > << > /Type /Font > /Subtype /Type1 > /Name /Frpdf0 > /BaseFont /Courier > /Encoding /WinAnsiEncoding > >> > endobj > 3 0 obj > << > /Type /Outlines > /Count 0 > >> > endobj > 4 0 obj > [/PDF /Text ] > endobj > 5 0 obj > <> > stream > 1.0000 0.0000 0.0000 1.0000 0.0000 792.0000 cm > 0.0000 -1.0000 1.0000 0.0000 0.0 0.0 cm > BT > /Frpdf0 9.000 Tf > 1.0000 0.0000 -0.0000 1.0000 14.4000 16.5600 Tm > (Page: 1) Tj > /Frpdf0 12.000 Tf > 1.0000 0.0000 -0.0000 1.0000 14.4000 579.4800 Tm > (Products Report) Tj > /Frpdf0 9.000 Tf > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > ET > 14.400 561.600 763.200 1.856 re > f > BT > /Frpdf0 11.000 Tf > 1.0000 0.0000 -0.0000 1.0000 14.4000 549.2400 Tm > (Products Report \(Page Header\)) Tj > /Frpdf0 9.000 Tf > ET > 14.400 541.600 763.200 0.856 re > f > 0.8980 0.8980 0.8980 rg > 0.8980 0.8980 0.8980 RG > 14.400 532.600 313.200 8.856 re > f > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 534.7600 Tm > (Number Name Type Category ) Tj > ET > 14.400 531.600 763.200 0.856 re > f > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 520.7600 Tm > (10000000006 NRS 9999 0 ) Tj > 0.8980 0.8980 0.8980 rg > 0.8980 0.8980 0.8980 RG > ET > 14.400 509.600 313.200 8.856 re > f > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 511.7600 Tm > (10000000008 food sales 9999 0 ) Tj > 1.0000 0.0000 -0.0000 1.0000 14.4000 502.7600 Tm > (10000000005 overring 9999 0 ) Tj > 0.8980 0.8980 0.8980 rg > 0.8980 0.8980 0.8980 RG > ET > 14.400 491.600 313.200 8.856 re > f > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 493.7600 Tm > (10000000007 refund 9999 0 ) Tj > 1.0000 0.0000 -0.0000 1.0000 14.4000 484.7600 Tm > (10000000010 gift cert sales 9999 0 ) Tj > 0.8980 0.8980 0.8980 rg > 0.8980 0.8980 0.8980 RG > ET > 14.400 473.600 313.200 8.856 re > f > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 475.7600 Tm > (10000000011 other sales 9999 0 ) Tj > 1.0000 0.0000 -0.0000 1.0000 14.4000 466.7600 Tm > (10000000001 EI Sales 9999 0 ) Tj > 0.8980 0.8980 0.8980 rg > 0.8980 0.8980 0.8980 RG > ET > 14.400 455.600 313.200 8.856 re > f > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 457.7600 Tm > (10000000002 TO Sales 9999 0 ) Tj > 1.0000 0.0000 -0.0000 1.0000 14.4000 448.7600 Tm > (10000000003 DT Sales 9999 0 ) Tj > 0.8980 0.8980 0.8980 rg > 0.8980 0.8980 0.8980 RG > ET > 14.400 437.600 313.200 8.856 re > f > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 439.7600 Tm > (10000000009 nonfood sales 9999 0 ) Tj > 1.0000 0.0000 -0.0000 1.0000 14.4000 430.7600 Tm > (10000000013 credits issued 9999 0 ) Tj > 0.8980 0.8980 0.8980 rg > 0.8980 0.8980 0.8980 RG > ET > 14.400 419.600 313.200 8.856 re > f > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 421.7600 Tm > (10000000014 promo sales 9999 0 ) Tj > 1.0000 0.0000 -0.0000 1.0000 14.4000 412.7600 Tm > (10000000015 gift cert redeemed 9999 0 ) Tj > 0.8980 0.8980 0.8980 rg > 0.8980 0.8980 0.8980 RG > ET > 14.400 401.600 313.200 8.856 re > f > 0.0000 0.0000 0.0000 rg > 0.0000 0.0000 0.0000 RG > BT > 1.0000 0.0000 -0.0000 1.0000 14.4000 403.7600 Tm > (10000000060 reserved 9999 0 ) Tj > ET > > endstream > endobj > 6 0 obj > << > /Type /Page > /Parent 1 0 R > /Resources << > /Font << > /Frpdf0 2 0 R > >> > /ProcSet 4 0 R >> > /MediaBox [0 0 612 792] > /CropBox [0 0 612 792] > /Rotate 270 > /Contents 5 0 R > >> > endobj > 7 0 obj > << > /Creator (RPDF By SICOM Systems) > /CreationDate (D:20070728052005) > /Producer (RPDF 1.0) > /Author (RPDF) > /Title (RLIB Report) > /Subject (None) > /Keywords (RPDF) > >> > endobj > 8 0 obj > << > /Type /Catalog > /Pages 1 0 R > /Outlines 3 0 R > >> > endobj > xref > 0 9 > 0000000000 65535 f > 0000000009 00000 n > 0000000068 00000 n > 0000000177 00000 n > 0000000223 00000 n > 0000000252 00000 n > 0000003646 00000 n > 0000003826 00000 n > 0000004003 00000 n > trailer > << > /Size 9 > /Root 8 0 R > /Info 7 0 R > >> > startxref > 4068 > %%EOF > > > again appreciate if anyone can help me, > Alex > > ----- Original Message ---- > From: Alexandru Gari-Negut <ale...@ya...> > To: rli...@li... > Cc: rli...@li... > Sent: Thursday, August 2, 2007 7:43:38 PM > Subject: Re: post-install problems with RLIB > > Hello, > I finally installed RLIB 1.3.7 after solving glib-2.0 dependency problem on a Fedora Core 6 running Apache, PHP & MySQL. > While trying to run the example.php as per the PDF manual available on http://rlib.sicompos.com/ I had encountered the following error messages: > > > > Warning: rlib_execute() [function.rlib-execute]: report.xml:6: parser error : Input is not proper UTF-8, indicate encoding ! > Bytes: 0x92 0x6C 0x6F 0x67 in /var/www/html/rlib.php on line 12 > > > > Warning: rlib_execute() [function.rlib-execute]: <Image value="’logo.jpg’" type="’jpeg’" width="50" height="50"/> in /var/www/html/rlib.php on line 12 > > > > Warning: rlib_execute() [function.rlib-execute]: ^ in /var/www/html/rlib.php on line 12 > > > > Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/rlib.php:12) in /var/www/html/rlib.php on line 13 > > > Can anyone try to help me figuring out what is missing so I can run the sample report against the MySQL database? > > Thanks in advance, > Alex > > > > > > > ____________________________________________________________________________________ > Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > > > > > > > ____________________________________________________________________________________ > Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. > http://sims.yahoo.com/ > > > > > > > ____________________________________________________________________________________ > Yahoo! oneSearch: Finally, mobile search > that gives answers, not web links. > http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rlib-users mailing list > Rli...@li... > https://lists.sourceforge.net/lists/listinfo/rlib-users -- Bob Doan Vice President of Information Technology SICOM Systems bd...@si... 800-547-4266 x217 |