Method: PHPCrawler::setURL()



Sets the URL of the first page the crawler should crawl (root-page).
Signature:

public setURL($url)

Parameters:

$url string The URL

Returns:

bool 

Description:

The given url may contain the protocol (http://www.foo.com or https://www.foo.com), the port (http://www.foo.com:4500/index.php)
and/or basic-authentication-data (http://loginname:passwd@www.foo.com)

This url has to be set before calling the go()-method (of course)!
If this root-page doesn't contain any further links, the crawling-process will stop immediately.