Execute Shell command?
| From: | KPortsmout at aol dot com | Date: | Sun, 01 Apr 2001 14:52:33 +0000 |
| Subject: | Execute Shell command? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46504@lists.php.net to get a copy of this message | ||
Hi,
Does anyone know if there is a way to execute a shell command in a php
script? I am trying to execute the following:
/usr/sbin/cadduser -d www.domain.com -f Adrian -u testing -p testing -q 10 -w
kportsmout@aol.com
I have tried passthru(), system(), exec() and none seem to work. I also tried
the backtick and that never worked. Any ideas anyone?
Adrian