Re: Interactive Commands

From: Date: Mon, 23 Oct 2000 12:56:30 +0000
Subject: Re: Interactive Commands
Groups: php.general 
Request: Send a blank email to php-general+get-21778@lists.php.net to get a copy of this message
Ok... it shows my username....anyway, you having said that means the passthr("oldpass\n..."); is the correct way to change the password. --- Joe Conway <joe@conway-family.com> wrote: > >Subject: [PHP] Interactive Commands > > > I was recently doing useless stuff with System(), > > Exec(), Passthru, etc... and was wondering if i > could > > change my password using this : > > > <snip> > > this works fine, but i can't seem to get this > right : > > echo "<pre>"; > > passthru("passwd\noldpass\nnewpass\nnewspass"); > > echo "</pre>"; > > > Try running: > > <html><body> > <? > $output = whoami; > echo "<pre>$output</pre>"; > ?> > </body></html> > > Note the backticks around whoami. This will show > you the user that your > web server is running as. That user won't be able to > change your password. > > Hope this helps, > > Joe > > ===== To Find Out More About Me : http://mukul.tsx.org/ __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/

« previous php.general (#21778) next »