HTTP_Request
[ class tree: HTTP_Request ] [ index: HTTP_Request ] [ all elements ]

File: download-progress.php

Source Location: /HTTP_Request-1.3.0/docs/download-progress.php

Classes:

HTTP_Request_DownloadListener
This class implements the Observer part of a Subject-Observer design pattern. It listens to the events sent by a HTTP_Request or HTTP_Response instance.

Page Details:

Includes:

require_once('HTTP/Request.php') [line 13]
An example of Listener usage with HTTP_Request. This downloads and saves the file displaying the progress bar in the process.

Note two things: 1) The file should be run in console, not in browser; 2) You should turn output buffering OFF for this to work properly.

$Id: download-progress.php,v 1.1 2003/10/27 10:48:49 avb Exp $

require_once('HTTP/Request/Listener.php') [line 14]
require_once('Console/ProgressBar.php') [line 15]

Documentation generated on Mon, 11 Mar 2019 14:10:28 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.