Entry
I have to call a command /etc/rc.d/init.d/named restart from a php script. How can i execute this
Jan 13th, 2002 14:37
Jens Clasen, Deep Kumar, http://www.php.net/manual/en/ref.exec.php
In general You can execute a command using the backtick-operator.
If You want to exec /etc/rc.d/init.d/named You simply have to do
something like $buffer=`/etc/rc.d/init.d/named restart`.
The only problem You may encounter is that Your script is not allowed to
run named...
If You need further information about executing commands refer to the
given link!
P.S.: Please excuse my bad English - it's not my native Language!