Method: PHPCrawler::setPageLimit()


Sets a limit to the number of pages/files the crawler should follow.
Signature:

public setPageLimit($limit, $only_count_received_documents = false)

Parameters:

$limit int The limit, set to 0 for no limit (default value).
$only_count_received_documents bool 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.

Returns:

No information

Description:

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