Re: Install Problems.

Bob Doan <[email protected]> Tue, 18 Jul 2006 20:03:28 -0400
Newsgroups gmane.text.rlib.user
Message-ID <[email protected]>
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: [email protected]
> 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 [email protected] https://lists.sourceforge.net/lists/listinfo/rlib-users


-------------------------------------------------------------------------
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