Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 __construct, wgetHandler
 __destruct, wgetHandler
 _parseOutput, wgetHandler
 _saveCookieFile, wgetHandler
A
 arrCookies, wgetHandler
 arrErrorDescriptions, wgetHandler
 arrIndicatorChars, wgetHandler
 arrOutputLines, wgetHandler
D
 doDownload, wgetHandler
F
 Functions, wgetHandler
I
 intReturnValue, wgetHandler
L
 License
O
 objDownloadResult, wgetHandler
S
 strDownloadPath, wgetHandler
 strParams, wgetHandler
 strPathTowget, wgetHandler
 strUserAgent, wgetHandler
V
 Variables, wgetHandler
W
 wgetHandler
public function __construct()
Initialize objDownloadResult
public function __destruct()
Just delete the cookies.txt file, it it exists.
private function _parseOutput()
Takes an array with output lines of wget and get average download speed, time needed and file size from it.
private function _saveCookieFile($strDomainCookieScope)
Save cookies from arrCookies to cookies.txt
public $arrCookies
Cookies to send with download requests.
public $arrErrorDescriptions
Descriptions of wget return values, where key == return and vice versa.
public $arrIndicatorChars
Each element contains one char, used in order of appearance in array for intLiveMode=3 param in doDownload.
private $arrOutputLines
Will be filled with stdout (and stderr, since we use output redirection) from wget.
public function doDownload($strURL,  
$strTargetFile = "",
$strReferer = "",
$intLiveMode = 0,
$bDontDeleteTargetFile = false)
Downloads a given url
public $intReturnValue
Will get wgets return value when doDownload finished.
GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007
public $objDownloadResult
Will get the download results
public $strDownloadPath
Path (full or relative) to target directory, without trailing slash, for downloaded files.
public $strParams
Commandline params/options to use when launching wget.
public $strPathTowget
Path to wget binary to use.
public $strUserAgent
HTTP UserAgent to send.
Implements a interface to run downloads with wget, intended to be used in shell scripts but also usable in a web enviroment.
Close