RE: [PHP] Executing UNIX commands with PHP
| From: | Matthew Loff | Date: | Wed, 04 Jul 2001 20:47:37 +0000 |
| Subject: | RE: [PHP] Executing UNIX commands with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56231@lists.php.net to get a copy of this message | ||
You could popen() the command, I believe, and do it interactively...
-----Original Message-----
From: Tim Taubert [mailto:timtaubert@web.de]
Sent: Wednesday, July 04, 2001 4:47 PM
To: PHP Mailingliste
Subject: RE: [PHP] Executing UNIX commands with PHP
mh this is bad...
can i do anything else instead of this ?
---------------------------------------------------------------------
Tim Taubert | timtaubert@web.de | http://www.shogunat.com/rg/
---------------------------------------------------------------------
.o] -----Original Message-----
.o] From: Arcady Genkin [mailto:a.genkin@utoronto.ca]
.o] Sent: Wednesday, July 04, 2001 10:42 PM
.o] To: timtaubert@web.de
.o] Cc: PHP Mailingliste
.o] Subject: Re: [PHP] Executing UNIX commands with PHP
.o]
.o]
.o] "Tim Taubert" <timtaubert@web.de> writes:
.o]
.o] > how can i execute a UNIX command like
.o] > 'newuser "Tim Taubert" tim password'
.o] > ? and am i able to fetch the results of such commands? .o]
.o] Since someone else replied to your question, I'll just mention that
.o] running such command may be a really bad idea. If someone runs `ps'
.o] at the same time, he'll be able to see the password for user `tim'
in .o] clear text. .o] --
.o] Arcady Genkin
.o] i=1; while 1, hilb(i); i=i+1; end
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net