PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   The Mole Hole (http://www.phpdig.net/forum/forumdisplay.php?f=17)
-   -   why script can run all time ? (http://www.phpdig.net/forum/showthread.php?t=283)

fr :: anonymus 12-09-2003 02:45 PM

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.

Charter 12-09-2003 03:00 PM

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.

fr :: anonymus 12-09-2003 03:23 PM

I thought that it came of print @exec('renice 18 '.getmypid()).

Thanks.

Charter 12-10-2003 08:25 AM

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.