Ec (2); classCreateHtml {& nbsp; * functionmkdir ($ prefixarticle) {& nbsp; $ ydate (Y); & nbsp; $ mdate (m); & nbsp; $ ddate (d); & nbsp; $ pDIRECTORY_SEPARATOR; & nbsp; script ec (2 ); script
Class CreateHtml {
/* Function mkdir ($ prefix = 'Article '){
$ Y = date ('y ');
$ M = date ('M ');
$ D = date ('D ');
$ P = DIRECTORY_SEPARATOR;
$ FilePath = 'Article'. $ p. $ y. $ p. $ m. $ p. $ d;
$ A = explode ($ p, $ filePath );
Foreach ($ a as $ dir ){
$ Path. = $ dir. $ p;
If (! Is_dir ($ path) {// echo 'This directory does not exist'. $ path;
Mkdir ($ path, 0755 );
}
}
Return $ filePath. $ p;
}*/
Function start (){
Ob_start ();
}
Function end ($ name ){
$ Info = ob_get_contents ();
$ FileId = $ name;
$ Postfix = '.html ';
// $ Path = $ this-> mkdir ($ prefix = 'Article ');
$ FileName = $ fileId. $ postfix;
// $ File = fopen ($ path. $ fileName, 'W + ');
$ File = fopen ($ fileName, 'W + ');
Fwrite ($ file, $ info );
Fclose ($ file );
Ob_end_flush ();
}
}
?>