LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 481|回复: 0

这是我做过的一例子,请大家看看是什么毛病,为什么不能显示出登陆时间?

[复制链接]
发表于 2003-11-9 00:51:12 | 显示全部楼层 |阅读模式
<html>
<head>
<title>中文时间显示例子</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>你登录本站的时间:<p>
<?php
$cweekday = array ("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
$now = getdate (time());
$cur_wday=$now['wday'];
$showtime = date("北京时间Y年m月d日H时i分s秒  $cweekday[$cur_wday]");
echo $showtime;
?>
</body>
</html>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表