Re: Interactive Commands

From: Date: Mon, 23 Oct 2000 19:57:34 +0000
Subject: Re: Interactive Commands
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21853@lists.php.net to get a copy of this message
On Sun, Oct 22, 2000 at 10:22:30PM -0700, Mukul Sabharwal wrote: > Hi, > > I was recently doing useless stuff with System(), > Exec(), Passthru, etc... and was wondering if i could > change my password using this : > > passthru("passwd\noldpass\nnewpass\nnewspass"); Check out http://www.php.net/popen : int popen (string command, string mode) Opens a pipe to a process executed by forking the command given by command. Returns a file pointer identical to that returned by fopen(), except that it is unidirectional (may only be used for reading or writing) and must be closed with pclose(). This pointer may be used with fgets(), fgetss(), and fputs(). Mike -- Mike Erickson <mee@quidquam> http://www.quidquam.com/ "Hatred is the coward's revenge for being intimidated" - George Bernard Shaw

« previous php.general (#21853) next »