why script can run all time ?
Hello,
how do you do for spider can run all time ? What is the function(office) which allows to make(do) a script php which not arrete not? Normaly, The program should etre stop by max_execution_time, no? thanks, Anonymus. |
Hi. The script should keep crawling as long as it finds links at the given level within a certain time. The set_time_limit(86400); in the spider.php file is for one day. More information about set_time_limit can be found here.
|
I thought that it came of print @exec('renice 18 '.getmypid()).
Thanks. |
Hi. Renice changes the priority of the process. You could change the number to give the process higher priority if wanted. A man page about renice can be found here.
|
All times are GMT -8. The time now is 09:43 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.