<?php
/* include the script */
include("files.lib.php");
//set the destination folder
$c['dir']="upload/dl";
// set the allowed mime types
$c['types']=array("application/msword", "application/excel", "application/vnd.ms-excel", "application/x-excel", "application/x-msexcel", "application/rtf", "application/x-rtf", "text/richtext");
// initialize the class in an object
$files = new files($c);
// return the upload form
echo $files->display_upload();
//return the list of files
echo $files->display();
?>
|