RE: [PHP] How do I run a command as root?
| From: | Jon Haworth | Date: | Mon, 02 Dec 2002 10:52:58 +0000 |
| Subject: | RE: [PHP] How do I run a command as root? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126695@lists.php.net to get a copy of this message | ||
Hi Luke,
> I'm trying to find out how to run a command on the
> server as root. Does anybody know how to do this?
How about using a combination of exec() and sudo (assuming you're in the
sudoers file, that is)?
Cheers
Jon