RE: [PHP-WIN] htaccess and PHP in general
| From: | Scott Hurring | Date: | Mon, 03 Jun 2002 20:29:35 +0000 |
| Subject: | RE: [PHP-WIN] htaccess and PHP in general | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14060@lists.php.net to get a copy of this message | ||
It was just the simplest/easiest/fastest way to get what
i needed to do, done.
All that was needed was support for name/password,
nothing else... and apache's .htpasswd is really
(IMO) ideal for such a simple user validation.
i didnt want to go to the trouble of including support for
sessions and auth and a login/logout page, etc... the
project wasn't that big -- and there was a severe time
constraint.
---
Scott Hurring
Systems Programmer
EAC Corporation
ScottH@eac.com
Voice: 201-462-2149
Fax: 201-288-1515
> -----Original Message-----
> From: Matt Babineau [mailto:matt@criticalcode.com]
> Sent: Monday, June 03, 2002 3:22 PM
> To: 'Scott Hurring'
> Subject: RE: [PHP-WIN] htaccess and PHP in general
>
>
> Scott, you mentioned you are working on a system like this.
> What is the
> advantage of using .htaccess/.htpasswd? I mena if the
> authentication can
> be done using mysql and php, why should I even use .htaccess? I have a
> client that wants to avoid using any type of database, which I am
> opposed to because it makes my job very difficult. Why are
> you using the
> htaccess in your project?
>
> Matt Babineau
> Freelance Internet Developer
> -----------------------------------------
> e: matt@criticalcode.com
> p: 603.943.4237
> w: http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>
> -----Original Message-----
> From: Scott Hurring [mailto:scott@eacnet.com]
> Sent: Friday, May 31, 2002 4:57 PM
> To: Php-Win (E-mail)
> Subject: RE: [PHP-WIN] htaccess and PHP in general
>
>
> Handle everything thru PHP/Mysql, but write a little function
> that will
> read thru the Mysql database and write the .htaccess
> files to disk as needed.
>
> Of course, you'll have to set proper permissions on the files.
>
> That's what i'm doing now for a project i'm working on...
> all user data is in the database, and eveyrtime a change
> is made to the DB, the .htpasswd file is written to disk
> to keep it constantly updated.
>
> ---
> Scott Hurring
> Systems Programmer
> EAC Corporation
> ScottH@eac.com
> Voice: 201-462-2149
> Fax: 201-288-1515
>
> > -----Original Message-----
> > From: Matt Babineau [mailto:matt@criticalcode.com]
> > Sent: Friday, May 31, 2002 10:40 AM
> > To: 'Php-Win (E-mail)'
> > Subject: [PHP-WIN] htaccess and PHP in general
> >
> >
> > I have a client that wants to use htaccess for verification and
> > authentication into certain areas of a web site. I
> suggested to use a
> > combination of PHP/MySQL to get the jobs done. it makes my
> life easier
>
> > and reduces low-level administration tasks on his part letting me
> > bundle all the administrative tasks into one neat PHP application.
> > Rather then
> > administer qmail and htaccess access via text files or
> however they do
> > it. Does anyone have any good insight on what they think
> > would be best?
> > I don't know alot about htaccess, so its a little foreign
> to me. But a
> > PHP/MySQL authentication system seems as secure and far far
> > more salable
> > to both my abilities and his needs. Any thoughts?
> >
> > Matt Babineau
> > Freelance Internet Developer
> > -----------------------------------------
> > e: <mailto:matt@criticalcode.com>
> > matt@criticalcode.com
> > p: 603.943.4237
> > w: <http://www.criticalcode.com/>
> http://www.criticalcode.com PO BOX
> > 601 Manchester, NH 03105
> >
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>