Static util-methods used by phpcrawl.
Located in /libs/PHPCrawler/PHPCrawlerUtils.class.php (line 8)
Reconstructs a full qualified and normalized URL from a given link relating to the URL the link was found in.
Builds an URL from it's single parts.
Array conatining the URL-parts. The keys should be:
"protocol" (z.B. "http://") OPTIONAL "host" (z.B. "www.bla.de") "path" (z.B. "/test/palimm/") OPTIONAL "file" (z.B. "index.htm") OPTIONAL "port" (z.B. 80) OPTIONAL "auth_username" OPTIONAL "auth_password" OPTIONAL
Checks whether a given RegEx-pattern is valid or not.
Checks whether a given string matches with one of the given regular-expressions.
Returns deserialized data that is stored in a file.
Returns the base-URL specified in a meta-tag in the given HTML-source
Returns all cookies from the give response-header.
Gets the value of an header-directive from the given HTTP-header.
Example:
Gets the HTTP-statuscode from a given response-header.
Gets all meta-tag atteributes from the given HTML-source.
Returns the redirect-URL from the given HTML-header
Returns the normalized root-URL of the given URL
Determinates the systems temporary-directory.
Checks wether the given string is an UTF8-encoded string.
Taken from http://www.php.net/manual/de/function.mb-detect-encoding.php (comment from "prgss at bk dot ru")
Checks whether the given string is a valid, urlencoded URL (by RFC)
Normalizes an URL
I.e. converts http://www.foo.com:80/path/ to http://www.foo.com/path/
Deletes a directory recursivly
Serializes data (objects, arrayse etc.) and writes it to the given file.
Sorts a twodimensiolnal array.
Splits an URL into its parts
Documentation generated on Sun, 20 Jan 2013 21:18:50 +0200 by phpDocumentor 1.4.4