|
12-09-2003, 03:45 PM | #1 |
Green Mole
Join Date: Dec 2003
Location: Lyon, France
Posts: 17
|
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. |
12-09-2003, 04:00 PM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
12-09-2003, 04:23 PM | #3 |
Green Mole
Join Date: Dec 2003
Location: Lyon, France
Posts: 17
|
I thought that it came of print @exec('renice 18 '.getmypid()).
Thanks. |
12-10-2003, 09:25 AM | #4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Operating time of a script | sofi7666 | Troubleshooting | 1 | 06-01-2005 09:09 AM |
Could not run set names. | punker101 | Script Installation | 2 | 05-24-2005 02:18 PM |
Could not run set names. | lichman | Script Installation | 1 | 05-03-2005 11:18 AM |
Could not run set names. | gle76130 | Script Installation | 1 | 04-11-2005 11:32 AM |
Run at PHP 4.3.2 MySQL 4 | Rolandks | Troubleshooting | 4 | 09-18-2003 05:36 AM |