From: Bob D. <bd...@si...> - 2006-07-21 01:01:11
|
So either RLIB can't load the file reck_ckbancos.xml or your have invalid XML. Try xmllint reck_ckbancos.xml to see if it is valid XML. Also make sure your XML file is in the same directory as your php file. - bob On Thu, 2006-07-20 at 16:02 -0600, Edgar Picado wrote: > 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 > _______________________________________________ > Rlib-users mailing list > Rli...@li... > https://lists.sourceforge.net/lists/listinfo/rlib-users |