|
Posted by Rik on 07/18/07 01:45
On Tue, 17 Jul 2007 22:13:19 +0200, Gilles Ganault <nospam@nospam.com>
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?
The manual has to come extent:
http://nl3.php.net/manual/en/features.http-auth.php
--
Rik Wasmus
[Back to original message]
|