httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Taylor" <ch...@x-bb.org>
Subject Re: [users@httpd] delete user in htpasswds through php
Date Tue, 03 Sep 2002 23:19:17 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No, not AFAIK, but it's relatively easy.

Read file into array (split by line), delete line which you don't
like. Output array over the top of old file. :)

As has been mentioned: I'm SURE there's a PHP support place for this,
this list is for the Apache HTTPD server.

Chris Taylor - The guy with the PS2 WebServer
Email: chris@x-bb.org - PGP: http://www.x-bb.org/chris.asc

- ----- Original Message ----- 
From: "Gunter Sammet" <Gunter@SammySolutions.com>
To: "Apache Users" <users@httpd.apache.org>
Sent: Wednesday, September 04, 2002 12:13 AM
Subject: [users@httpd] delete user in htpasswds through php


> Hello all:
> Did a bit of reading and couldn't find an answer which makes me
> happy.  
> 
> If I need to remove a user from an htpasswd file, do I really need
> to read the whole file in, remove the user through code and write
> it again. Isn't there an easier way? Everything I found on Google
> pointed into this direction.
> 
> Would love to hear if there is an easier way!?
> TIA
> Gunter
> 
> 
> --------------------------------------------------------------------
> - The official User-To-User support forum of the Apache HTTP Server
> Project. See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPXVDciqf8lmE2RZkEQKJQwCfX3ooef+tX8GSIcn+reigUATxjlIAnjO4
bE5RAiS9wP58et+bDU+2K93C
=oj2D
-----END PGP SIGNATURE-----



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message