From: Bob D. <bd...@si...> - 2006-07-19 00:03:58
|
Hi, You need to call execute before you can call the get_content_type. Also if you want debug messages do this before the execute: rlib_set_output_parameter($this->_rlib, 'debugging', 'yes'); And have your format be "html" It can also be helpful to run the RLIB from the command line to get debugging. - Bob On Tue, 2006-07-18 at 13:19 -0600, Edgar Picado wrote: > It's a shame i can't put it work. > I've been trying for a week putting rlib to work. > My last attempt was: > > - Compile rlib with: --disable-perl --prefix=/usr > - make > - make install > > The php file report: > -------------------------- > dl ("rlib.so"); > > $format = "pdf"; > $sql_host = "localhost"; > $sql_users = "user"; > $sql_password = "password"; > $sql_database = "database"; > > $rlib = rlib_init(); > > echo "1"; > echo rlib_version(); > rlib_add_datasource_mysql($rlib, "local_mysql", $sql_host, $sql_users, > $sql_password, $sql_dabatase); > echo "2"; > echo rlib_add_datasource_mysql($rlib, "local_mysql", $sql_host, > $sql_users, $sql_password, $sql_dabatase); > rlib_add_query_as($rlib, "local_mysql", "select * from ckbancos", > "ckbancos"); > echo "3"; > rlib_add_report($rlib, "reck_ckbancos.xml"); > echo "4"; > rlib_set_output_format_from_text($rlib, $format); > echo rlib_get_content_type($rlib); > rlib_execute($rlib); > rlib_spool($rlib); > rlib_free($rlib); > > In the screen appear: > > 12034UNKNOWN > > No error messages, just only a blank screen. > > Any help, i will appreciate it > > Edgar Picado > Messenger: edg...@ho... > Costa Rica > ------------------------------------------------------------------------- > 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 |