PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Where is start ( ) ?

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication
View previous topic :: View next topic  
Author Message
rearnest



Joined: 16 Dec 2008
Posts: 3

PostPosted: Tue Dec 16, 2008 11:00 pm    Post subject: Where is start ( ) ? Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Wed Dec 17, 2008 12:21 am    Post subject: Reply with quote

Not sure what your question (and problem) really is, but you might want to either look into the provided examples [1] or provide more details here.

[1] http://pear.php.net/manual/en/package.authentication.auth-http.php
Back to top
View user's profile Send private message
rearnest



Joined: 16 Dec 2008
Posts: 3

PostPosted: Wed Dec 17, 2008 3:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Wed Dec 17, 2008 7:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
rearnest



Joined: 16 Dec 2008
Posts: 3

PostPosted: Wed Dec 17, 2008 9:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
manvi



Joined: 20 Dec 2011
Posts: 4

PostPosted: Tue Dec 20, 2011 11:20 am    Post subject: Reply with quote

well......
i like your sharing so much.its really good piece of information for us.good work
keep it up.thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement