<?php exec("/etc/init.d/sshd restart", $output); foreach($output as $out) { echo $out . PHP_EOL; } ?>