<?php
//闹钟程序
error_reporting();
ob_start();
if(!isset($i)){
$msg=现在时间是:date(h:i:s)"<BR>赶快睡觉吧";
$t=time();
refresh($msg"funnyphp?i=&t=$t");
}elseif($i==){
$msg=现在时间是:date(h:i:s);
$t=time();
$t=$t$t;
$msg="<BR>你睡了$t秒该起床啦";
refresh($msgfunnyphp?i=);
}elseif($i==){
//
print<<<EOT
<objectid="MediaPlayer"width=""height=""classid="CLSID:dfbfdabcce"
codebase="#Version="
align="baseline"border=""standby="LoadingMicrosoftWindowsMediaPlayercomponents"
type="application/xoleobject">
<paramname="invokeURLs"value="">
<paramname="FileName"value="
<paramname="ShowControls"value="">
<paramname="ShowPositionControls"value="">
<paramname="ShowAudioControls"value="">
<paramname="ShowTracker"value="">
<paramname="ShowDisplay"value="">
<paramname="ShowStatusBar"value="">
<paramname="AutoSize"value="">
<paramname="ShowGotoBar"value="">
<paramname="ShowCaptioning"value="">
<paramname="AutoStart"value="">
<paramname="PlayCount"value="">
<paramname="AnimationAtStart"value="">
<paramname="TransparentAtStart"value="">
<paramname="AllowScan"value="">
<paramname="EnableContextMenu"value="">
<paramname="ClickToPlay"value="">
<paramname="DefaultFrame"value="datawindow">
<embedsrc="
type="application/xmplayer"
pluginspage="
name="MediaPlayer"showcontrols=""showpositioncontrols=""
showaudiocontrols=""showtracker=""showdisplay=""
showstatusbar=""
autosize=""
showgotobar=""showcaptioning=""autostart=""autorewind=""
animationatstart=""transparentatstart=""allowscan=""
enablecontextmenu=""clicktoplay=""
defaultframe="datawindow"invokeurls="">
</embed>
</object>
EOT;
}
functionrefresh($msg=$url$time=){
echo$msg"<BR>";
echo"<metahttpequiv=refreshcontent="$time;url=$url">";
}
?>