PHP code example of test_zx / breakpoint

1. Go to this page and download the library: Download test_zx/breakpoint library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

test_zx / breakpoint example snippets

// 检查唯一标识
    $breakPointObj = new BPUploaderLocal();
    $breakPointObj ->chunkDir = __DIR__. '/../upload';
    $breakPointObj ->check($identifier);

    // 检查唯一标识
    $breakPointObj = new BPUploaderLocal();
    $breakPointObj ->chunkDir = __DIR__. '/../upload';
    $breakPointObj ->finalFileDir = __DIR__. '/../newUpload';
    $breakPointObj ->merge($identifier,$newFileName,$totalChunks);