Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54163 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46087 invoked from network); 23 Jul 2011 19:17:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2011 19:17:41 -0000 Authentication-Results: pb1.pair.com header.from=kiall@managedit.ie; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kiall@managedit.ie; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain managedit.ie designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: kiall@managedit.ie X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:34347] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/A0-42580-35E1B2E4 for ; Sat, 23 Jul 2011 15:17:41 -0400 Received: by ewy2 with SMTP id 2so2142215ewy.29 for ; Sat, 23 Jul 2011 12:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=managedit.ie; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=+wA/46UaanBhTri3GV7G6AxlaUCQT0ncmwHc3llsNbE=; b=B2xVl+WJp6XCfsj5Bflbkq9DUmO9gGSZqZnZ3OrEbFOaFadOUZiRUoYL8YwLnWbjh2 IGOkcwvIB7I4EXIBxhB3UUbUF+e+ZNBV/tWEMbF1IlXGhfEPPcl34VfKIvIGO9wJ338n BxzwBfSDC34RAU0ApEp+Wor8S4T4voQdc++Z8= Received: by 10.14.45.77 with SMTP id o53mr1021076eeb.112.1311448656316; Sat, 23 Jul 2011 12:17:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.98.201 with HTTP; Sat, 23 Jul 2011 12:17:16 -0700 (PDT) In-Reply-To: <4E2B1C0E.9040104@thelounge.net> References: <4E2B1C0E.9040104@thelounge.net> Date: Sat, 23 Jul 2011 20:17:16 +0100 Message-ID: To: Reindl Harald Cc: Mailing-List php Content-Type: multipart/alternative; boundary=90e6ba6150a24d08da04a8c16f20 Subject: Re: [PHP-DEV] CLI: input password without showing it From: kiall@managedit.ie (Kiall Mac Innes) --90e6ba6150a24d08da04a8c16f20 Content-Type: text/plain; charset=ISO-8859-1 Check the password method here: https://github.com/kohana-minion/core/blob/develop/classes/minion/cli.php It should do what you want on windows+linux.. Kiall On Sat, Jul 23, 2011 at 8:07 PM, Reindl Harald wrote: > hi > > is there any way to request a password from a user without > showing the input in the terminal? > > $input_pwd = trim(fgets(STDIN)); > > works nice as long no foreigner is in the room :-( > > > --90e6ba6150a24d08da04a8c16f20--