RE: [PHP] .htpasswd login

2004-05-27 Thread Jami
Your looking for this: $_SERVER['PHP_AUTH_USER'] When running under Apache as module doing HTTP authentication this variable is set to the username provided by the user. See Reserved Variables: http://www.php.net/reserved.variables Jami Moore LightSPARK Digital Designs http://www.lightsparkdig

RE: [PHP] .htpasswd and PayPal generated passwords

2003-03-01 Thread Boaz Yahav
Check out : Authenticating against .htpasswd style files. http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=109 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Rob Packer [mailto:[EMAIL PROTECTED]

Re: [PHP] htpasswd

2003-01-23 Thread Peter Janett
"Evan Nemerson" <[EMAIL PROTECTED]> To: "Kris" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 23, 2003 12:37 AM Subject: Re: [PHP] htpasswd > Don't chmod .htpasswd- _huge_ security risk... Will your server allow you to > have suid s

Re: [PHP] htpasswd

2003-01-22 Thread Evan Nemerson
Don't chmod .htpasswd- _huge_ security risk... Will your server allow you to have suid scripts??? If so, you can just write a little wrapper and make it suid. If you do that, I'd also reccomend using an extension other than PHP, and/or placing it outside your web root. Wouldn't want people addin

RE: [PHP] .htpasswd

2002-07-02 Thread Matt Schroebel
%htpasswd --help Usage: htpasswd [-cmdps] passwordfile username htpasswd -b[cmdps] passwordfile username password htpasswd -n[mdps] username htpasswd -nb[mdps] username password -c Create a new file. -n Don't update file; display results on stdout. -m Force M

Re: [PHP] htpasswd

2001-10-25 Thread Derek Mailer
go to http://www.php.net/manual/en/ref.filesystem.php and read up on things like fopen, fclose, etc. This will explain how to write to any kind of file including htpasswd files if necessary. Good Luck Derek - Original Message - From: "Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

RE: [PHP] .htpasswd encryption

2001-04-12 Thread Ryan Hilton
Your can use the php crypt() function to encrypt the passwords in the .htpasswd file $newPwd = crypt( trim( $newPwd) ); // encrypt the new password Brandon Orther wrote: > Hello, > > I am trying to make a script that creates .htpasswd files. Does anyone > know what encryption is used? > > Tha

Re: [PHP] .htpasswd encryption

2001-04-11 Thread Hervé PARISSI
Brandon Orther wrote: > Hello, > > I am trying to make a script that creates .htpasswd files. Does anyone > know what encryption is used? > > Thanks > Brandon > It can be crypt() or MD5 or SHA, you could call htpasswd. See man htpasswd under *nix. -- PHP General Mailing List (http://www.php

Re: [PHP] .htpasswd encryption

2001-04-09 Thread Lindsay Adams
It can really depend on your system. On mine, for instance, it uses regular crypt() with a 2 character salt So, you can generate a random 2 character string to pass as the salt argument in php, and create it that way. IF that is the method used by your system Wanna test it? Peek inside etc/pass

Re: [PHP] .htpasswd encryption

2001-04-09 Thread Kurth Bemis
At 04:39 PM 4/9/2001, Brandon Orther wrote: i believe that the scheme is md5 ~kurth >Hello, > >I am trying to make a script that creates .htpasswd files. Does anyone know >what encryption is used? > >Thanks >Brandon > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mai

RE: [PHP] .htpasswd?

2001-02-01 Thread Thor M. Steindorsson
check this out: http://www.hotscripts.com/Detailed/3903.html It does what you're asking for... why write the code when you can copy and paste? :) -Original Message- From: James Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 1:22 PM To: [EMAIL PROTECTED]; [EMAIL PRO

Re: [PHP] .htpasswd?

2001-01-31 Thread david klein
Yes, you can, just write a script to call "htpasswd -b yourUserFile userID passwd". :) David >From: James Smith <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: [PHP] .htpasswd? >Date: Wed, 31 Jan 2001 13:21:35 -0800 (PST) > >Is there a way that when a user signs up for