libs/PHPCrawler.class.php
public function setPageLimit($limit, $only_count_received_documents = false)
  {
    if (!preg_match("/^[0-9]*$/", $limit)) return false;
    
    $this->document_limit = $limit;
    $this->only_count_received_documents = $only_count_received_documents;
    return true;
  }
public function setPageLimit($limit, $only_count_received_documents = false)
  {
    if (!preg_match("/^[0-9]*$/", $limit)) return false;
    
    $this->document_limit = $limit;
    $this->only_count_received_documents = $only_count_received_documents;
    return true;
  }
Sets a limit to the number of pages/files the crawler should follow.

If the limit is reached, the crawler stops the crawling-process. The default-value is 0 (no limit).

@param int $limit                          The limit, set to 0 for no limit (default value).
@param bool $only_count_received_documents OPTIONAL.
TRUE means that only documents the crawler received will be counted.
FALSE means that ALL followed and requested pages/files will be counted, even if the content wasn't be received.
@section 5 Limit-settings