Interactive Commands
| From: | Mukul Sabharwal | Date: | Mon, 23 Oct 2000 05:22:30 +0000 |
| Subject: | Interactive Commands | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-21716@lists.php.net to get a copy of this message | ||
Hi,
I was recently doing useless stuff with System(),
Exec(), Passthru, etc... and was wondering if i could
change my password using this :
I tried :
echo "<pre>";
passthru("whois devhome.net");
echo </pre>";
this works fine, but i can't seem to get this right :
echo "<pre>";
passthru("passwd\noldpass\nnewpass\nnewspass");
echo "</pre>";
why doesn't this work, i'm not very familiar with how
to do interactive stuff... and how can i read the
output and on that basis make my decision.... maybe if
it says password too easy... but still i'll keep on
doing that...
thanks.
=====
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/