linux下用php脚本调用另一个php脚本
这个linux空间就只有ftp权限开放给我~~现在想写一个脚本first.php来定时执行second.php
执行second.php不知道怎么写~~
first.php
1 2 3 4 5 6 7 8 9 10 | <br />
ignore_user_abort(TRUE);
set_time_limit(0);
<br />
while (TRUE) { <br />
<br />
<br />
sleep(86400)<br />
}
|
Salin selepas log masuk
------解决方案--------------------如果是想执行second.php ; 直接调用exec或者system。
如果只是想require 或者include,建议在while 外面做。