Ec (2); & lt ;? Phpclasshtml {& nbsp; var $ dir; & nbsp; dirforthehtmls () & nbsp; var $ rootdir; & nbsp; rootof script ec (2); script
Class html
{
Var $ dir; // dir for the htmls (/)
Var $ rootdir; // root of html files (without/): html
Var $ name; // html file storage path
Var $ dirname; // The specified folder name.
Var $ url; // The Source webpage address for retrieving html file information
Var $ time; // time When html file information is added
Var $ dirtype; // directory storage method: year, month ,,,,
Var $ nametype; // name of the html file: 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 (
<