You are here: Re: Handling HTTP basic authentication in script? « PHP Programming Language « IT news, forums, messages
Re: Handling HTTP basic authentication in script?

Posted by Jerry Stuckle on 07/18/07 01:44

Gilles Ganault wrote:
> Hello
>
> I have a PHP script rss.php that serves RSS to clients. It
> work fine, but I'd like to server customized contents, and for this, I
> need to know who the user is.
>
> Unless there's a better way, it looks like the easiest way is to use
> HTTP basic authentication:
>
> http://en.wikipedia.org/wiki/Basic_authentication_scheme
>
> So I figure I should have a section in the script that starts with
> prompts for a login/passwd, then fetch contents with a customized
> SELECT, and format it as RSS before sending the output to the RSS
> client.
>
> Has someone written this before and could share some tips/code?
>
> Thank you.

HTTP basic authentication/authorization is strictly between the browser
and the webserver. Your don't need anything in your pages.

Or you can implement your own (non-http) authentication/authorization
scheme. I've done several; there's not much to it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация