RE: [PHP] PHP Auth with Apache
| From: | Adam Voigt | Date: | Thu, 14 Nov 2002 16:56:00 +0000 |
| Subject: | RE: [PHP] PHP Auth with Apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124455@lists.php.net to get a copy of this message | ||
You have a space or a tag or something before you call session_start,
session_start has to be the very first thing, unless you use output
buffering (ob_start, etc).
On Thu, 2002-11-14 at 11:54, Ysrael Guzmán wrote:
> Y have a problemm
>
> Warning: Cannot send session cache limiter - headers already sent
> (output started at c:\foxserv\www\t-demo1\pedidos\prod_oficina.php:5) in
> c:\foxserv\www\t-demo1\pedidos\prod_oficina.php on line 6
>
> Ysrael Guzmán Meza
>
>
> -----Mensaje original-----
> De: BigDog [mailto:bigdog@venticon.com]
> Enviado el: Jueves, 14 de Noviembre de 2002 04:51 a.m.
> Para: php-general@lists.php.net
> Asunto: Re: [PHP] PHP Auth with Apache
>
>
> Ed,
>
> When you do auth with mysql and they succeed then u can set the
> $_SERVER['PHP_AUTH_USER'] and in theory that should allow you to connect
> to the directory because that should be set for apache http
> authentication.
>
> You might have to play with it, but i am sure you can get it to work.
>
>
> On Thu, 2002-11-14 at 16:42, ed@home.homes2see.com wrote:
> > I'm now understanding how you can get PHP to present you with a
> > username and password promt just like APache would do if you had a
> > .htaccess file in the directory you were trying to enter. Great idea
> > but it seems that it would be easier to just use the .htaccess file in
>
> > the directory.
> >
> > What I've been trying to find out is how to pass through a .htaccess
> > file if someone has already passed an database authentication lookup
> > in PHP.
> >
> > I have an area on my site "Special Publications" where users login and
>
> > their username and password is checked against a MySQL database. One
> > field in their user records is the URL to their directory on our
> > server. Each one of these directories is protected via .htaccess. What
>
> > I would really like to do is have them redirected to their URL if they
>
> > pass authentication and not have them enter their username and
> > password again. Is their a way to do this?
> >
> > Thanks,
> >
> > Ed
> >
> >
> >
> > On Wed, 13 Nov 2002, Ewout de Boer wrote:
> >
> > > in httpd.conf
> > >
> > > <Directory /scriptdir>
> > > AllowOverride AuthConfig
> > > </Directory>
> > >
> > >
> > > More info at
> > >
> > > http://httpd.apache.org/docs/mod/core.html#allowoverride
> > >
> > >
> > > regards,
> > >
> > > Ewout
> > >
> > >
> > > ----- Original Message -----
> > > From: "Alexander Bemme" <ab@ovit.de>
> > > To: <php-general@lists.php.net>
> > > Sent: Wednesday, November 13, 2002 12:02 PM
> > > Subject: [PHP] PHP Auth with Apache
> > >
> > >
> > > > Hi,
> > > > i got a little problem (i hope so)
> > > >
> > > > I have installed Apache 1.3.26 and PHP 4.2.3 as module.
> > > >
> > > > I used the example from www.php.net to do a PHP authentication,
> > > > but it didn't work, the pop appears but i can't login.
> > > >
> > > > In PHPManual is someting about "AuthType" but nothing about how to
>
> > > > fix it.
> > > >
> > > > Can someone help out?
> > > >
> > > > Thanks
> > > >
> > > > --Alex
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit:
> > > > http://www.php.net/unsub.php
> > > >
> > > >
> > > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> --
> .: B i g D o g :.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc