libs/PHPCrawler.class.php
public function setURL($url)
  {
    $url = trim($url);
    
    if ($url != "" && is_string($url))
    {
      $this->starting_url = PHPCrawlerUtils::normalizeURL($url);
      return true;
    }
    else return false;
  }
public function setURL($url)
  {
    $url = trim($url);
    
    if ($url != "" && is_string($url))
    {
      $this->starting_url = PHPCrawlerUtils::normalizeURL($url);
      return true;
    }
    else return false;
  }
Sets the URL of the first page the crawler should crawl (root-page).

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 {@link go()}-method (of course)!
If this root-page doesn't contain any further links, the crawling-process will stop immediately.

@param string $url The URL
@return bool

@section 1 Basic settings