I am wondering how I could possibly input the values for option (e.g -r), time (e.g now) and message (e.g Shutting down), I have tried:
system("shutdown " . $option . "-t " . $time . " " . $message);
and that didn't work? (I am doing it via PHP, also.)
This is the code that I have so far in shutdown.php:
<?php
$option = $_POST['option'];
$time = $_POST['time'];
$message = $_POST['message];
?>
I am using Apache 2 by the way.