カレンダー表示
2026年 1月
123
45678910
11121314151617
18192021222324
25262728293031


現在時刻は 2026/01/15(Thu)18:30:51
    January 2026    
Su Mo Tu We Th Fr Sa
             1  2  3
 4  5  6  7  8  9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
                    


UNIX命令によるカレンダー表示

$now_date = getdate(time());
$cmd ="cal $now_date[mon] $now_date[year]";
$fp = @popen ("$cmd", "r") or die("Error!");
echo "<BR><pre>";
while (!feof ($fp)) {
$buffer = fgets($fp, 4096);
echo "$buffer";
}
echo "</pre>";

[HPに戻る] [PHPに戻る]