Search code examples
phpzend-frameworkbandwidth

ZendFramework - How to test bandwidth? When visitor open a page to display his upload/download


When i am running the server and visitor is trying to open the page www.site.com/zf/bandwidth. How can i display the user his upload/download speed? Which adapter / class can be used.

class ZfController extends  Zend_Controller_Action {
  public function bandwidthAction() {
     // show the upload/ download speed of that visitor
  }
}

Solution

  • Maybe you could use the ProgressBar Adapter to measure the bandwith for predefined packages and return it to the user of your website.