Re: Parsing commands to a program
| From: | val petruchek | Date: | Sat, 02 Feb 2002 10:58:07 +0000 |
| Subject: | Re: Parsing commands to a program | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83235@lists.php.net to get a copy of this message | ||
> Hello,
>
> I was wondering, how would I pass commands to a program and print the
> results on my screen?
> For instance, to add an FTP user the command would be:
> "pure-pw useradd joeblow -u ftpuser -d /home/joeblow"
> How would I make a php script do that and display it's output when it's
> done?
>
Try
<?php
echo
pure-pw useradd joeblow -u ftpuser -d /home/joeblow; //not quotes by
ticks!
?>
but not sure about security allows u to do it
Valentin Petruchek (aki Zliy Pes)
Cut the beginning
http://zliypes.com.ua
mailto:val@zliypes.com.ua