https://static.06ms.com/static/images/index/14.jpg

PHP下载类代码

<?php
/**
* @author www.iklfy.com
* @copyright 2011
* @filename download.class.php
*/
/*
//文件下载类,以下调用示例代码
$download = new download('php,exe,html', false);
if (!$download->downloadfile($filename))
{
echo $download->geterrormsg();
}
*/
class download
{
var $debug = true;
var $errormsg = '';
var $Filter = array();
var $filename = '';
var $mineType = 'text/plain';
var $xlq_filetype = array();