Parsing commands to a program
| From: | Liam MacKenzie | Date: | Sat, 02 Feb 2002 10:55:31 +0000 |
| Subject: | Parsing commands to a program | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83233@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?
Thanks,
Liam