PHP Classes

File: SampleString.php

Recommend this page to a friend!
  Classes of Filippo Toso   Recover Stream   SampleString.php   Download  
File: SampleString.php
Role: Example script
Content type: text/plain
Description: Example of RecoverStringStream class usage
Class: Recover Stream
Serve content for download that can be resumed
Author: By
Last change:
Date: 18 years ago
Size: 373 bytes
 

Contents

Class file image Download
<?php

require_once(dirname(__FILE__) . '/RecoverStringStream.class.php');

$test = new RecoverStringStream();
$test->FileName = 'sample.zip'; // the name that will be provided to the client
$test->Content = file_get_contents('sample.zip'); // just load a sample string from a file
$test->ContentType = 'application/x-zip-compressed';
$test->Handle();

?>