Activity Stream
48,167 MEMBERS
61083 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 74
  1.     
    #61
    Member
    hi,

    i try run test.php which have not edited yet exclude activeLog()
    PHP Code: 
    <!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 
    
    Warning:  Missing argument 1 for CurlAxel::activeLog(), called in C:\xampp\htdocs\curl\test.php on line 19 and defined in C:\xampp\htdocs\curl\CurlAxel.php on line 133
    
    Notice:  Undefined variable: is in C:\xampp\htdocs\curl\CurlAxel.php on line 134
    
    Warning:  Missing argument 1 for CurlAxel::setProgressCallback(), called in C:\xampp\htdocs\curl\test.php on line 20 and defined in C:\xampp\htdocs\curl\CurlAxel.php on line 214
    
    Notice:  Undefined variable: is in C:\xampp\htdocs\curl\CurlAxel.php on line 215
    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
    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
    something wrong?

    anyway ,thanx, i like this apps

  2.     
    #62
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    sorry i forgot to update test.php
    i've just pushed the changes, tested it again and works perfect. try it now.

  3.     
    #63
    Member
    This class is great

    Keep the great work

    i will try to add to rapidleech script .

    And I WILL ADD UR NAME.
    Regards
    MHR (Maher Ghoul)

  4.     
    #64
    Member
    Quote Originally Posted by jokerhacker View Post
    sorry i forgot to update test.php
    i've just pushed the changes, tested it again and works perfect. try it now.
    nice job guys.
    really amazing php class

    but, i dont know why progress bar not work normally

    1st tried: finish 80%
    2nd tried: finish 40%
    3th tried: finish 42%
    4th tried: finish 100%
    5th tried: finish 20%

    this happen both on less than 5mb and 5mb++ (slow_download and fast_download)

    i modified your script like this to know the basic of progress bar
    http://www.mediafire.com/?sb23aqhspsa1hv9

    these are the result of slow_download(), fast_download() and my script


    so, the problem is, progress bar didn't work fine, although the file is 100% downloaded.

    i so confused about this, because if i look for the source in my browser (firefox) the progressBar() is called from 1 until 100, but the progressbar still shown on 63%. have i did something wrong?


    and the second,
    i dont know why my browser is like hang up before progress bar has shown up.

    sorry 4 my english.
    i hope u can understand what i meant.

    anyway, i like your class

  5.     
    #65
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    i've noticed this issue, but honestly, with my limited experience with jquery icouldn(t solve it properly, but i'm working on it

  6.     
    #66
    Member
    doesnt matter, may be still callback issue only.
    but at most this class is very awesome for single file download.

    thanx for this

  7.   Sponsored Links

  8.     
    #67
    Member
    solved

    change $progress
    into
    PHP Code: 
                $progress create_function('$download_size, $downloaded, $upload_size, $uploaded','static $sprog = 0;
                @$prog = ceil($downloaded*100/$download_size);
                    echo \'<script>$("#'
    .$pb.'").progressBar(\'. $prog. \');</script>\';
                '
    ); 
    correct the progress bar and its work on multiple file download.
    download first file >> wait until finish (progress bar show) >> finish >>
    download second file >> wait until finish (progress bar show) >> finish >> .....


    is very nice see the basic of your work , awesome class

    now, i ask u permission to use this class for my apps. may i have this?

    cehhms@yahoo.com

  9.     
    #68
    Member
    Website's:
    proxy-vpn.com
    Please i have a problem

    Notice: Use of undefined constant CURLOPT_PROGRESSFUNCTION - assumed 'CURLOPT_PROGRESSFUNCTION' in /**************/CurlAxel.php on line 352

    Notice: Use of undefined constant CURLOPT_PROGRESSFUNCTION - assumed 'CURLOPT_PROGRESSFUNCTION' in /**************/CurlAxel.php on line 352

    Notice: Use of undefined constant CURLOPT_PROGRESSFUNCTION - assumed 'CURLOPT_PROGRESSFUNCTION' in /**************/CurlAxel.php on line 352

    Notice: Use of undefined constant CURLOPT_PROGRESSFUNCTION - assumed 'CURLOPT_PROGRESSFUNCTION' in /**************/CurlAxel.php on line 352

    Notice: Use of undefined constant CURLOPT_PROGRESSFUNCTION - assumed 'CURLOPT_PROGRESSFUNCTION' in /**************/CurlAxel.php on line 352

  10.     
    #69
    Member
    what have u did before?
    did u try to change my own $progress to curAxel.php $progress directly?

  11.     
    #70
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    share4free, please show me the version of CurlAxel you are using
    darkslayer, put a pull request in github, you have the absolute right to use it in your app

Page 7 of 8 FirstFirst ... 5678 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. download file???
    By q295516594 in forum Webmasters, Money Making
    Replies: 0
    Last Post: 3rd Oct 2011, 03:10 PM
  2. Download Accelerator with Rapidleech
    By CuraHack in forum Web Development Area
    Replies: 10
    Last Post: 28th Aug 2011, 03:53 PM
  3. Why it's not download the file?
    By ChaoscripT in forum Web Application/Script Support
    Replies: 6
    Last Post: 13th Aug 2011, 04:03 PM
  4. Replies: 8
    Last Post: 11th Dec 2010, 12:52 AM

Tags for this Thread

BE SOCIAL