Function BrokenURLScanner->check_url

Definitions

sources/broken_urls.php

  • Check to see if a URL is there.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$url URLPATH No No required parameter N/A N/A URL to check
&$message string Yes No required parameter N/A N/A HTTP response code, returned by reference

Returns

  • Whether the URL is there (i.e. false = broken)
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Check to see if a URL is there.
 *
 * @param  URLPATH $url URL to check
 * @param  string $message HTTP response code, returned by reference
 * @return boolean Whether the URL is there (i.e. false = broken)
 */

public function check_url(string $url, string &$message) : bool