复制代码 代码如下:<?php class Shtml { var $Templet; var $DataSource; var $Dir; var $fileName; var $mod; var $handle; function Shtml($fileName=””) { $this->fileName=$fileName; $this->mod=”wb”; $this->handle=false; $this->Templet = “”; $this->DataSource = array()