Re: [PHP] Entering password on a command line

2002-05-29 Thread Analysis Solutions

 To increase security, I would like to not put the bind password into the
 program, and instead have the user type it in.  But, I'd like to have this
 done so that the password is not echo'd to the screen.

The one thing I can suggest is the readline functions:
   http://www.php.net/manual/en/ref.readline.php

That may not be exactly what you want, but it's probably the closest 
you're going to get to what you want.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Entering password on a command line

2002-05-27 Thread Darren Gamble

Good day,

I have a command-line PHP script that connects to an LDAP database and does
some queries.

To increase security, I would like to not put the bind password into the
program, and instead have the user type it in.  But, I'd like to have this
done so that the password is not echo'd to the screen.

Lots of searching has shown that people have done something similar in C and
Perl by closing the stdout channel.  But, I haven't found anything similar
in PHP (and I would need to reopen the channel again somehow afterwards
anyway).

Does anyone have a suggestion on how this might be accomplished?

In the meantime I'll just put the password in the program, but, I'd like to
learn how this could be done.

Thanks in advance,


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php