note 111319 deleted from function.exec by danbrown

From: Date: Tue, 05 Mar 2013 16:12:56 +0000
Subject: note 111319 deleted from function.exec by danbrown
References: 1  Groups: php.notes php.notes 
Request: Send a blank email to php-notes+get-193933@lists.php.net to get a copy of this message
Note Submitter: ogi ---- If you want to execute sudo command "example" from php use: $cmd= "sudo example"; exec($cmd); and ADD line using visudo to /etc/sudoers user ALL=(ALL)NOPASSWD:example where user is username of PHP. No plain text sudo passwords. Less risk.

« previous php.notes (#193933) next »