| View previous topic :: View next topic |
| Author |
Message |
rearnest
Joined: 16 Dec 2008 Posts: 3
|
Posted: Tue Dec 16, 2008 11:00 pm Post subject: Where is start ( ) ? |
|
|
Should the start ( ) object be in Auth_HTTP?
I'm trying to do the O'Reilly Coffee Talk blog form Learning PHP & MySQL but am hung up here. I am connecting to the database and do have Auth/HTTP.php include but getting "Access Denied" when I call start ( ). |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
|
| Back to top |
|
 |
rearnest
Joined: 16 Dec 2008 Posts: 3
|
Posted: Wed Dec 17, 2008 3:43 pm Post subject: |
|
|
Thanks for the quick response Mark.
Actually, I've got a script set up almost exactly like the one in example 2. I keep tripping over the "$a->setCancelText('<h2>Error 401</h2>'); step. (If I comment out start ( ) I don't get this message so I presume it's happening inside the function.)
I thought it might be good to see more of what start ( ) is doing but, unlike Auth_HTTP ( ), I don't see the code for it in Auth/HTTP.php. That made me wonder that perhaps I don't have things installed right and led to my question.
So at this point I figure I'm either not getting to the start function or I'm passing bad parameters in $AuthOptions. Either way there doesn't seem to be a lot out there explaining how start ( ) works. It'd be nice to see the source code. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Wed Dec 17, 2008 7:08 pm Post subject: |
|
|
Ah, I think I know what the problem is: Auth_HTTP extends the Auth package. And the Auth package also needs to be installed. (But actually the "new Auth_HTTP(...)" call should fail if Auth.php is missing.) Anyway, you'll the start() method in Auth.php.
Does this help you? If not, I'm still not sure about your problem, sorry. |
|
| Back to top |
|
 |
rearnest
Joined: 16 Dec 2008 Posts: 3
|
Posted: Wed Dec 17, 2008 9:07 pm Post subject: |
|
|
| Thanks again Mark. This does answer my question. I have it included now and can see the source code. It does not solve my problem, however, I'll have to dig deeper on that and may come back again when I can ask more intelligently. (Can you tell I'm new to PHP & Pear?) |
|
| Back to top |
|
 |
|