カレンダー表示
2025年 7月
12345
6789101112
13141516171819
20212223242526
2728293031


現在時刻は 2025/07/01(Tue)19:47:09
      July 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に戻る]