Re: HTTP Authenticate via PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 11/30/2004 04:13 AM, Jeffery Fernandez wrote:
I am trying to find out if its possible to authenticate a page against an HTTP authentication. Basically what I am trying to do is make available the stats page of the Cpanel to the admin interface of a site. When accessing the stats via the cpanel the user needs to login via http authentication.

Is it possible for me to store the username password credentials within the php page and pass that across via headers to authenticate the page for viewing the stats. The main purpose is to make the webstats transparent to the admin user so they don't have to enter any username/password. I tried putting the username:password@domain into the url of an iframe page(session controlled) but stupid IE spits the authentication as a pop-up (login window). Hope I have explained well enough.

It depends on the type of authentication that is really being requested. If it is not accepting HTTP authentication, maybe it is session based authentication with cookies or something like that.


In any case, you may want to try this HTTP client class that can handle any case.

http://www.phpclasses.org/httpclient

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux