Created
March 12, 2012 19:06
-
-
Save JacerOmri/2024018 to your computer and use it in GitHub Desktop.
CurlAxel test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<script src="js/jquery.js"></script> | |
<script src="js/jquery.progressbar.min.js"></script> | |
</head> | |
<body> | |
<?php | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors', 1); | |
include 'CurlAxel.php'; | |
//$fileurl = "http://cachefly.cachefly.net/100mb.test"; | |
$fileurl = "http://93.190.137.8/1000mb.bin"; | |
echo "downloading $fileurl <br>"; | |
$curlaxel = new CurlAxel; | |
$curlaxel->setUrl($fileurl); | |
$curlaxel->setProgressCallback(true); | |
$curlaxel->setBufferSize(32*1024*1024); | |
$curlaxel->activeLog(true); | |
$curlaxel->download();xel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment