Home  >  Article  >  php教程  >  php定时执行

php定时执行

PHP中文网
PHP中文网Original
2016-05-25 17:07:071084browse


header("Content-Type: text/plain");
//http://blog.ddian.cn
set_time_limit(0);
 
$infoString = "Hello World" . "\n";
while( isset($infoString) )
{
        echo $infoString;
        flush();
        ob_flush();
        sleep(5);
}

                   

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php拷贝文件到相应目录Next article:页面倾斜效果