note 37089 deleted from function.system by cmb

From: Date: Sun, 08 Dec 2019 11:47:31 +0000
Subject: note 37089 deleted from function.system by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213485@lists.php.net to get a copy of this message
Note Submitter: tomlubbock at hotmail dot com ---- If you need to run root-level commands, such as to reboot a service, the utility 'sudo' will let you handle linux permissions. In our example we use 'sudo' to allow apache temporary root access to restart a service. We can then use: system("sudo service dhcpd restart") You also need to examine the /etc/sudoers file to specify what permissions to grant. Hope this helps someone!

« previous php.notes (#213485) next »