Thread: 0 links found
View Single Post
Old 03-09-2004, 12:45 PM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Some users have run spider.php on different (sub)domains at the same time using the same database tables without incident. However, PhpDig doesn't specifically account for multithreading issues.

If you want to try running PhpDig in a distributed fashion on the same domain, perhaps set the the following in the config.php file, where X is one or two:
PHP Code:
define('SPIDER_MAX_LIMIT',X);         //max recurse levels in spider
define('SPIDER_DEFAULT_LIMIT',X);     //default value
define('RESPIDER_LIMIT',X);           //recurse limit for update
define('LIMIT_DAYS',0);               //default days before reindex a page 
and try entering the site at different spots, for example:
Code:
prompt> php -f spider.php http://www.domain.com/dir1/ &
prompt> php -f spider.php http://www.domain.com/dir2/ &
The & backgrounds the process and returns you to the shell prompt.
__________________
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