PHP
//Alarm Clock program
error_reporting(7);
Ob_start();
if (!isset ($i)) {
$msg= ' Now time is: '. Date(' h:i:s ') ."
Go to bed. ";
$t= Time();
Refresh($msg,"funny.php?i=1&t1= $t",5);
}elseif ($i==1){
$msg= ' Now time is: '. Date(' h:i:s ');
$t 2= Time();
$t 3=$t 2-$t 1;
$msg.="
You slept $t 3 seconds, it's time to 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&sbp=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;
}
functionRefresh($msg='',$url,$time=' 3 '){
Echo$msg."
";
Echo" ";
}
?>
http://www.bkjia.com/PHPjc/371602.html www.bkjia.com true http://www.bkjia.com/PHPjc/371602.html techarticle ? PHP//Alarm Clock program error_reporting (7); Ob_start (); if (!isset ($i)) {$msg = ' now time is: '. Date (' H:i:s '). BR go to bed soon; $t = time (); Refresh ($msg, funny.ph ...