PHP code example of digilive / file-streamer
1. Go to this page and download the library: Download digilive/file-streamer 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/ */
digilive / file-streamer example snippets
use DigiLive\FileStreamer\FileStreamer;
// Use composer's auto loader.
$hp';
ext');
// Set inline disposition if wished.
$fileStreamer->setInline();
$fileStreamer->start();
// Execution of PHP will terminate when FileStreamer::start() is finished.