From: Bob D. <bd...@si...> - 2003-09-15 15:12:27
|
Hym... I think its cause of the mysql_init problem I told you about on rlib-devel CVS HEAD has the correct MYSQL stuff.. - Bob On Mon, 2003-09-15 at 10:25, Justin Hammond wrote: > I did a bit more debuging with the sample script you provided in the doco: > <? > dl ("libr.so"); > $query = "SELECT * FROM members"; > $rlib = rlib_init("localhost", "root", "xxxx", "secure"); > $format = "PDF"; > rlib_add_query_as($rlib, $query, "topline"); > rlib_add_query_as($rlib, "select name from def", "header"); > rlib_add_report($rlib, "report_plu.xml"); > rlib_set_output_format($rlib, $format); > rlib_execute($rlib); > rlib_finalize($rlib); > header(rlib_get_content_type($rlib)); > rlib_spool($rlib); > ?> > > > and put some debuging statements around the sql connect statements: > Tring - PDF - header - topline > Couldn't connect to MySql: Access denied for user: 'PDF@localhost' (Using > password: YES) > Could not connect to MYSQL > > Fatal error: Could not load engine.. check logs in /root/rlib.php on line 10 > > > something funky is going on... I dont know php that well to be able to > figure it out any further, can you give me any tips? > > Justin Hammond wrote: > > hey, > > I wanted to give your rlib a whirl, but alas, couldn't get it working. > > firstly, it wouldn't link correctly. I use mysql 4.1 and u have to use > > mysql_real_connect instead of mysql_connect > > second, you should specify that you need to have the shared version of > > cpdflib installed, the static version wont link with rlib either. > > > > finally, its still not working. I think its partly due to the > > hardcoded usernames/db etc etc etc > > > > attached is a small patch that I tried to use to get it working. > > > > any hints I can use to try and get it running? > > |