カレンダー表示
2025年 10月
1234
567891011
12131415161718
19202122232425
262728293031


現在時刻は 2025/10/17(Fri)09:34:05
    October 2025    
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に戻る]