Re: Install Problems.

"Edgar Picado" <picado-/[email protected]> Thu, 20 Jul 2006 16:02:41 -0600
Newsgroups gmane.text.rlib.user
Message-ID <000401c6ac48$4a5a9130$0a01010a@COM010>
Hi Mr. Bob..

Ok, good, give me some errors:

RLIB: xmlParseError

RLIB: Failed to load a report file [reck_ckbancos.xml]

RLIB: Content type code unknown

Warning: Cannot modify header information - headers already sent by (output
started at /var/www/html/cheques/cons_ckctas.php:24) in
/var/www/html/cheques/cons_ckctas.php on line 25


-Edgar Picado

----------------------------------------------------------------------------
------
Hi,

Change
rlib_set_output_parameter($this->_rlib, "debugging", "yes");
To
rlib_set_output_parameter($rlib, "debugging", "yes");

- Bob

On Thu, 2006-07-20 at 14:44 -0600, Edgar Picado wrote:
> Thanks Michiel and Bob for your reply,
> 
> Ok, I will start again, because nothing happens with the code that I 
> have, or you send me.
> 
> My new code is like the one on the example:
> 
> <?
> session_start();
> $_SESSION['pagina'] = "consultas";
> include("../includes/valida.php");
> 
> include("../includes/conexbase.php");
> $link=conectarse();
> 
> dl ("rlib.so");
>   
>  $format       = "html";
>  $sql_host     = "host";
>  $sql_users    = "user";
>  $sql_password = "user";
>  $sql_database = "database";
>   
>  $rlib = rlib_init();
>   
>  rlib_add_datasource_mysql($rlib, "mysql", $sql_host, $sql_users, 
> $sql_password, $sql_dabatase);  rlib_add_query_as($rlib, "mysql", 
> "select * from ckbancos", "ckbancos");  rlib_add_report($rlib, 
> "reck_ckbancos.xml");  rlib_set_output_format_from_text($rlib, 
> $format);  rlib_set_output_parameter($this->_rlib, "debugging", 
> "yes");  rlib_execute($rlib);
>  header( rlib_get_content_type($rlib));
>  rlib_spool($rlib);
>  rlib_free($rlib);
> 
> ?>
> 
> AND give me the following errors:
> 
> Warning: rlib_set_output_parameter() expects parameter 1 to be 
> resource, null given in /var/www/html/cheques/cons_ckctas.php on line 
> 23
> 
> Warning: Cannot modify header information - headers already sent by 
> (output started at /var/www/html/cheques/cons_ckctas.php:23) in 
> /var/www/html/cheques/cons_ckctas.php on line 25
> 
> Just only that information appears!
> 
> Thanks !
> 
> Edgar Picado


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV