Re: [Phplib-users] unable to connect
Brought to you by:
nhruby,
richardarcher
From: BRUN L. <zi...@cl...> - 2003-03-06 23:14:41
|
> >I use the RELEASE 7.4-pre2 version, and i tought it was because of > >register_globals wich is set to on (in reffer to this post : > >http://sourceforge.net/mailarchive/message.php?msg_id=2832431 ). > > > >i put it to off and restart Apache, but i still can't log with the page > >test. > > Sorry - I might have misunderstood you - do you mean you can't log-in? yes i cant log in, i'm using the exmaple page that commes with phplib to test it : page_open(array("sess" => "Example_Session", "auth" => "Example_Auth", "perm" => "Example_Perm", "user" => "Example_User")); should i use an older version from the RELEASE 7.4-pre2 ? > Which auth method are you using - Example_Auth, Example_Challenge_Auth or Example_Challenge_Crypt_Auth? You need to be using the right user table (auth_user or auth_user_md5), and also the right login forms. > > >Any idea of the way to debug the prob ? > > It's been a long time since I used the Table class (I now use templates for everything), but I've had a look at the code & it looks like if setting a global variable $debug to true you will get some useful messages, but I don't know if that's what you want to debug. > > If it's the login process you want to debug, you'll have to put in a log of echo statements (or trigger_error()s if you're feeling fancy) > > It took me a while to get the hang of phplib - but it is worth it in the end. > > Good luck! (Bon chance?) thanks ! u'r right, i'm a frenchie ! :) well i dont knew i could have an accent just by writting words ! > Peter > > > >> Hi Lilian > >> > >> Which version of phplib are you using? - the more recent versions use > >php4's native sessions, so no data will be written to the phplib session > >tables. > >> > >> So you might not have a problem at all! > >> > >> I think if you do want to use the tables, you need to user > >session4_custom.inc - but I've not used it, so maybe someone else culd help > >you there if you need it. > >> > >> Hope that helps > >> > >> Peter > >> > >> At 14:04 05/03/03 +0100, zi...@cl... wrote: > >> >I read carrefuly the install doc and test it, but i'm finally unable to > >connect to the test-example page with the default kris/test logon. > >> >I had created tables and the test to the database is successfull : > >> ><?php > >> > include("table.inc"); // requires include_path to be functioning > >> > > >> > $db = new DB_Example; > >> > $db->query("select * from auth_user"); > >> > > >> > $t = new Table; > >> > $t->heading = "on"; > >> > $t->show_result($db); > >> >?> > > > > >> > > >> >look like this on the page : > >> >user_id username password perms > >> >c14cbf141ab1b7cd009356f555b607dc kris test admin > >> > > >> >the session test work too, but not at all : > >> >the counter works, but i dont get any lines in the session table. > >> > > >> >So, i think i miss a stage but i spend hours to find it without success > >... > >> > > >> >Could u help me ? > >> > > >> >Regards, > >> > > >> >Lilian. > >> > > > > ----------------------------- > Peter Cruickshank > Tel: +44 7092 086 881 > email: pe...@kr... > |