Re: get apache user
| From: | Jason Wong | Date: | Sat, 25 Jan 2003 17:15:58 +0000 |
| Subject: | Re: get apache user | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133112@lists.php.net to get a copy of this message | ||
On Saturday 25 January 2003 23:41, Tommy Jensehaugen wrote:
> "Jason Wong" <php-general@gremlins.biz> wrote in message
> news:200301251550.38942.php-general@gremlins.biz...
>
> > On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote:
> > > I have a page where I log in as an Apache user. How do I get the apache
> > > username in php?
> >
> > print_r($_SERVER) to see which you can use.
> If I can't use any of those, it's not possible? correct?
> thank you for your help.
I'm assuming you're using HTTP authentication? So create a php page which
requires login, then on that page do the above. That will show you all the
values that can be obtained from apache.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
The goys have proven the following theorem...
-- Physicist John von Neumann, at the start of a classroom
lecture.
*/