@mickym
Ja, wie gesagt kann ich auch kein PHP
Folgendes mal einfach ausprobiert, aber ohne Erflog.
<?php
if ($_GET['run']) {
# This code will run if ?run=true is set.
#exec("/path/to/name.sh");
$script = "sudo /home/pi/midori-restart.sh";
sleep(3);
exec("sudo /home/pi/Midori-Display-start.sh");
$run=`$script`;
}
?>
<!-- This link will add ?run=true to your URL, myfilename.php?run=true -->
<style type="text/css">
a { color: #ffffff; text-decoration: none; }
</style>
<a href="?run=true">Display restart</a>