The alarm program written in php .? Php alarm program error_reporting (7); ob_start (); if (! Isset ($ I) {$ msg the current time is :. date (h: I: s ). BR go to bed now; $ ttime (); refresh ($ msg, funny. ph
// Alarm program
Error_reporting (7 );
Ob_start ();
If (! Isset ($ I )){
$ Msg = 'current time is: '. date ('H: I: s ')."
Go to bed ";
$ T = time ();
Refresh ($ msg, "funny. php? I = 1 & t1 = $ t ", 5 );
} Elseif ($ I = 1 ){
$ Msg = 'current Time: '. date ('H: I: s ');
$ T2 = time ();
$ T3 = $ t2-$ t1;
$ Msg. ="
You slept for $ t3 seconds, so you should get up ";
Refresh ($ msg, 'Funny. php? I = 2 ');
} Elseif ($ I = 2 ){
//
Print <
Codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
Align = "baseline" border = "0" standby = "Loading Microsoft Windows Media Player components ..."
Type = "application/x-oleobject">
Type = "application/x-mplayer2"
Pluginspage = "http://www.microsoft.com/isapi/redir.dll? Prd = windows & systolic = mediaplayer & ar = media & sba = plugin &"
Name = "MediaPlayer" showcontrols = "1" showpositioncontrols = "0"
Showaudiocontrols = "1" showtracker = "1" showdisplay = "0"
Showstatusbar = "1"
Autosize = "0"
Showgotobar = "0" showcaptioning = "0" autostart = "1" autorewind = "0"
Animationatstart = "0" transparentatstart = "0" allowscan = "1"
Enablecontextmenu = "1" clicktoplay = "0"
Defaultframe = "datawindow" invokeurls = "0">
EOT2;
}
Function refresh ($ msg = '', $ url, $ time = '3 '){
Echo $ msg ."
";
Echo" ";
}
?>
Http://www.bkjia.com/PHPjc/371602.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/371602.htmlTechArticle? Php // alert clock program error_reporting (7); ob_start (); if (! Isset ($ I) {$ msg = 'current time is :'. date ('H: I: s '). BR, go to bed. $ t = time (); refresh ($ msg, funny. ph...