Hi. The $limit variable is set to the number selected in the drop down box via the admin panel for search depth. The numbers in this drop down box go from zero to SPIDER_MAX_LIMIT. If running from shell or updating a site via the admin panel, $limit is set according to the following code:
PHP Code:
if (!isset($limit) or (int)$limit > SPIDER_MAX_LIMIT) {
if ($run_mode != 'cgi') {
$limit = RESPIDER_LIMIT;
}
else {
$limit = SPIDER_MAX_LIMIT;
}
}
The $run_mode variable is set to cgi if indexing from shell and is set to http if indexing from the browser interface. The SPIDER_DEFAULT_LIMIT is currently not used in the code other than as a defined constant. The LIMIT_DAYS is the number of days that should pass before a page is reindexed.
You can use shell commands to run PhpDig, but if you wish to use shell commands via PHP, check out
this page for various methods.