<script>ec(2);</script>
class html
{
var $dir; //dir for the htmls(without/)
var $rootdir; //root of html files(without/):html
var $name; //html文件存放路径
var $dirname; //指定的文件夹名称
var $url; //获取html文件信息的来源网页地址
var $time; //html文件信息填加时的时间
var $dirtype; //目录存放方式:year,month,,,,
var $nametype; //html文件命名方式:name
function html($nametype=''name'',$dirtype=''year'',$rootdir=''html'')
{
$this->setvar($nametype,$dirtype,$rootdir);
}
function setvar($nametype=''name'',$dirtype=''year'',$rootdir=''html'')
{
$this->rootdir=$rootdir;
$this->dirtype=$dirtype;
$this->nametype=$nametype;
}
function createdir($dir='''')
{
$this->dir=$dir?$dir:$this->dir;
if (!is_dir($this->dir))
{
$temp = explode(''/'',$this->dir);
$cur_dir = '''';
for($i=0;$i
{
$cur_dir .= $temp[$i].''/'';
if (!is_dir(
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn