カレンダー表示
2025年 9月
123456
78910111213
14151617181920
21222324252627
282930


現在時刻は 2025/09/15(Mon)20:27:07
   September 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            
                    


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に戻る]