Location: PHPKode > scripts > MakeCAB > example.php
//Send the MSCAB MIME type
header("Content-Type: application/vnd.ms-cab-compressed");
//Make it an attachment
header('Content-Disposition: attachment; filename="test.cab"');
//include the class file
//create object
$cab = new MakeCAB("test.cab");
//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
Return current item: MakeCAB