还需要安装apache
然后在根目录创建一个php文件,例如:index.php
在文件中写:
echo date('Y年m月d日 H时i分s秒');
echo “
”;
$weekarray=array("日","一","二","三","四","五","六"); //先定义一个数组
echo "星期".$weekarray[date("w")];
$today = getdate();
$tmonth = $today['mon'];
switch ($tmonth){
case
}