php显示服务器时间代码
<div id="time" align="center">time </div>
<script language="javascript">
function time1()
{
var now,n,y,r,h,m,s;
now=new Date();
n = now.getYear();
y = now.getMonth()+1;
r = now.getDate();
h = now.getHours();
m =now.getMinutes();
s = now.getSeconds();
if(y <10) y="0"+y;
if(r <10) r="0"+r;
if(h <10) h="0"+h;
if(m <10) m="0"+m;
if(s <10) s="0"+s;
document.getElementById("time").innerHTML="现在时间是:"+ n + "-" + y + "-" + r + " "+ h + ":" + m + ":" + s;
setTimeout("time1();", 1000);
}
time1();
</script>
相关文档:
Blog系统作为大家最常接触的互联网东东,在站长群体中几乎人手一博,从知名门户的博客频道,到网络营销专家博客,网民对博客的关注度在不断提高并深化。目前网上免费的blog系统太杂,在此整理PHP版的Blog介绍如下:
1、wordpress:http://www.wordpress.org 功能也很全面,应该是支持blog的首选。它有最强的模版功能,已经 ......
PHP开发常见问题解决列表
1. 学习Zend Framework tutorial过程中的问题
(1)执行"zf create project zf-tutorial"出现如下错误:
'"php.exe"' is not recognized as an internal or external command, operable program or batch file.
解决办法:原因是因为php.ex ......
防止以后忘掉,贴在这儿啦
function GetWeekDate($week,$year)
{
$timestamp = mktime(0,0,0,1,1,$year);
$dayofweek = date("w",$timestamp);
if( $week != 1)
&nb ......
PHP网站开发方案(开发新人必读)
一、开发成员
a)项目主管
b)页面美工
c)页面开发
d)服务端程序开发
e)系统与数据管理
f)测试与版本控制
二、 网站组开发简明流程
三、 开发工具与环境
a)服务器配置
i. W ......