PHP Classes

File: example

Recommend this page to a friend!
  Classes of Sam S   MakeCAB   example   Download  
File: example
Role: Example script
Content type: text/plain
Description: An example of MakeCab use
Class: MakeCAB
Create CAB archives from lists of files
Author: By
Last change:
Date: 16 years ago
Size: 710 bytes


Class file image Download
//Send the MSCAB MIME type
header("Content-Type: application/");
//Make it an attachment
header('Content-Disposition: attachment; filename=""');
//include the class file
//create object
$cab = new MakeCAB("");
//add a local file system file
//add a file from a url
//add all of the contents of a local file system directory, leaving the base directory
//Make the file
//output the file
//delete the file