Re: [PHP] Simulate the Enter key in Unix with PHP
hello, YoBro wrote: Have you got an example of how to use the -b switch. I am not up with lingo when it comes to unix. ?php /* try this */ if ($pressed) { $result = passthru(htpasswd -b mypasswordlist $user $pass); echo $resultbr\n; } else { ? form method=POST action=? echo $PHP_SELF; ? user: nbsp;nbsp; input type=text name=userbr pass: nbsp;nbsp; input type=password name=userbr input type=submit name=pressed value=' GO ' /form ? } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Simulate the Enter key in Unix with PHP
ERRATA to the PREVIOUS E-MAIL: the following line: pass: nbsp;nbsp; input type=password name=userbr should read: pass: nbsp;nbsp; input type=password name=passbr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Simulate the Enter key in Unix with PHP
Thanks for the help, but the example given does nothing at all. It has me stumped. I got my first example working up to the point where you enter the password but it is not storing the passwords. Bummer. barce [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ERRATA to the PREVIOUS E-MAIL: the following line: pass: nbsp;nbsp; input type=password name=userbr should read: pass: nbsp;nbsp; input type=password name=passbr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Simulate the Enter key in Unix with PHP
Hello, I have been trying to get PHP to execute some code to add users to the htpasswd file. So far I have this system (htpasswd /users/website/.htpasswd jim); My browser receives the unix data that reads : Adding user jim printed to the browser. Then you are usually prompted for a password in Unix, so the following is the password I want to submit, but how do I tell it to simulate an ENTER key press after each submission of the password. system (password); // usually press enter after this system (password); // and enter again. I am hoping this will fix the problem. If it is beginning to add the user, then it should work if I can execute the passwords with an ENTER after it as well. YoBro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Simulate the Enter key in Unix with PHP
Why don't you just use the -b switch and do it in one hit? - Original Message - From: YoBro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 12, 2001 3:32 PM Subject: [PHP] Simulate the Enter key in Unix with PHP Hello, I have been trying to get PHP to execute some code to add users to the htpasswd file. So far I have this system (htpasswd /users/website/.htpasswd jim); My browser receives the unix data that reads : Adding user jim printed to the browser. Then you are usually prompted for a password in Unix, so the following is the password I want to submit, but how do I tell it to simulate an ENTER key press after each submission of the password. system (password); // usually press enter after this system (password); // and enter again. I am hoping this will fix the problem. If it is beginning to add the user, then it should work if I can execute the passwords with an ENTER after it as well. YoBro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Simulate the Enter key in Unix with PHP
Have you got an example of how to use the -b switch. I am not up with lingo when it comes to unix. Jason Brooke [EMAIL PROTECTED] wrote in message 050d01c0daa6$9ebbada0$[EMAIL PROTECTED]">news:050d01c0daa6$9ebbada0$[EMAIL PROTECTED]... Why don't you just use the -b switch and do it in one hit? - Original Message - From: YoBro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 12, 2001 3:32 PM Subject: [PHP] Simulate the Enter key in Unix with PHP Hello, I have been trying to get PHP to execute some code to add users to the htpasswd file. So far I have this system (htpasswd /users/website/.htpasswd jim); My browser receives the unix data that reads : Adding user jim printed to the browser. Then you are usually prompted for a password in Unix, so the following is the password I want to submit, but how do I tell it to simulate an ENTER key press after each submission of the password. system (password); // usually press enter after this system (password); // and enter again. I am hoping this will fix the problem. If it is beginning to add the user, then it should work if I can execute the passwords with an ENTER after it as well. YoBro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]