Re: newbie - Auth
| From: | Sylvain Gourvil | Date: | Thu, 04 Aug 2005 12:45:41 +0000 |
| Subject: | Re: newbie - Auth | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20265@lists.php.net to get a copy of this message | ||
mel list_php wrote:
What do you have if you do a 'print_r($a) before and after the start method ? -- --------------------- Sylvain Gourvil Développeur PHP5, PEAR, SMARTY, POSTGRESQL Antiquités en FranceNothing wrong, but I suspect on this line, $_GET[act], I dunno but sometimes the key without quotes will be ack as a constant, tried to quotes it, so it could be like this $_GET['act'], see below: if($_GET[act] == "logout") { be: if($_GET['act'] == "logout") { The "if" condition is goes to first condition that the user is autheticated, some problem on nested "if".I tried it and still nothing... if I do $a = new Auth("DB", $params, "loginFunction" ); echo "1"; $a->start(); echo"2"; in the middle of the script, only the first one is displayed, not the second one, so I think I have a problem before the if when calling the start() method...as the first one is displayed I would say that the auth package is installed properly and that the $a object is created successfully, but I don't know how I can check that. This seems to be the basic example that I found in several places, and I'm a bit desperate, if I can't even have that running it's not very promising for the future...! :-) Thank you for your help, melanie _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/