i have problem with the refresh of apache from php, in some forums I've seen it recommended the implementation of cron script, but am new to this, someone knows that I can implement to bring this comprehensive and besides the best way for the system task, because I already know the problems get off and upload apache....
any help or opinion will be well received
good night
$output = shell_exec('service apache2 restart');
echo "<pre>$output</pre>";
shell_exec('shell_command');
You can execute shell commands by using this function.
Note: It will instantly shut down Apache so I don't know what happens in result. You should try to see.