コード例 #1
0
ファイル: tasks.php プロジェクト: anderssjoeberg/andrixTNG
function RestartSensor()
{
    $age = GetSensorAge();
    if ($age > 300) {
        $command = "/etc/init.d/telldusd restart";
        exec($command, $exec);
    }
}
コード例 #2
0
ファイル: test.php プロジェクト: anderssjoeberg/andrixTNG
<?php

include 'Includes/includes.php';
$age = GetSensorAge();
echo $age;