PhpDig.net

Go Back   PhpDig.net > General Forums > The Mole Hole

Reply
 
Thread Tools
Old 12-09-2003, 03:45 PM   #1
fr :: anonymus
Green Mole
 
fr :: anonymus's Avatar
 
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.
fr :: anonymus is offline   Reply With Quote
Old 12-09-2003, 04:00 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Old 12-09-2003, 04:23 PM   #3
fr :: anonymus
Green Mole
 
fr :: anonymus's Avatar
 
Join Date: Dec 2003
Location: Lyon, France
Posts: 17
I thought that it came of print @exec('renice 18 '.getmypid()).

Thanks.
fr :: anonymus is offline   Reply With Quote
Old 12-10-2003, 09:25 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 01:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.