darkslayer
Member
hi,
i try run test.php which have not edited yet exclude activeLog()
even file is success downloaded, but i got error warning like above.
and the most important , i dont see progress bar from jquery.
i also change to $curlaxel->setProgressCallback(true); but it still not work.
this is the log.txt
something wrong? :facepalm:
anyway ,thanx, i like this apps <3 <3
i try run test.php which have not edited yet exclude activeLog()
PHP:
<!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";
$fileurl = "http://www.anggaran.depkeu.go.id/peraturan/Perdirjen_Anggaran03_2011%20-%20JuklaksunlahSBK2012.pdf";
echo "downloading $fileurl <br>";
$curlaxel = new CurlAxel;
$curlaxel->setUrl($fileurl);
$curlaxel->activeLog();
$curlaxel->setProgressCallback();
$curlaxel->setBufferSize(32*1024*1024);
$curlaxel->activeLog(true);
$curlaxel->download();
Code:
downloading http://www.anggaran.depkeu.go.id/peraturan/Perdirjen_Anggaran03_2011%20-%20JuklaksunlahSBK2012.pdf
[B]Warning[/B]: Missing argument 1 for CurlAxel::activeLog(), called in C:\xampp\htdocs\curl\test.php on line 19 and defined in [B]C:\xampp\htdocs\curl\CurlAxel.php[/B] on line [B]133[/B]
[B]Notice[/B]: Undefined variable: is in [B]C:\xampp\htdocs\curl\CurlAxel.php[/B] on line [B]134[/B]
[B]Warning[/B]: Missing argument 1 for CurlAxel::setProgressCallback(), called in C:\xampp\htdocs\curl\test.php on line 20 and defined in [B]C:\xampp\htdocs\curl\CurlAxel.php[/B] on line [B]214[/B]
[B]Notice[/B]: Undefined variable: is in [B]C:\xampp\htdocs\curl\CurlAxel.php[/B] on line [B]215[/B]
and the most important , i dont see progress bar from jquery.
i also change to $curlaxel->setProgressCallback(true); but it still not work.
this is the log.txt
Code:
* About to connect() to www.anggaran.depkeu.go.id port 80 (#0)
* Trying 202.137.230.82... * connected
* Connected to www.anggaran.depkeu.go.id (202.137.230.82) port 80 (#0)
> GET /peraturan/Perdirjen_Anggaran03_2011%20-%20JuklaksunlahSBK2012.pdf HTTP/1.1
Host: www.anggaran.depkeu.go.id
Accept: */*
< HTTP/1.1 200 OK
< Content-Length: 292896
< Content-Type: application/pdf
< Last-Modified: Wed, 01 Jun 2011 19:39:29 GMT
< Accept-Ranges: bytes
< ETag: "2843879f9320cc1:587"
< Server: Microsoft-IIS/6.0
< X-Powered-By: ASP.NET
< Date: Thu, 08 Dec 2011 16:01:38 GMT
<
* Connection #0 to host www.anggaran.depkeu.go.id left intact
* Closing connection #0
anyway ,thanx, i like this apps <3 <3
Last edited: