file=$file; } var $file = ""; function filecheck(){ if(!file_exists($this->file)) { $f=fopen($this->file,"a+"); fwrite($f,' '); fclose($f); } } function newComment($m,$a,$df="y/m/d h:i:s"){ $this->filecheck(); $x=""; $content=' '.htmlspecialchars($m).' '.htmlspecialchars($a).' '.date($df).' '; $f=file($this->file); for($i=0;$ifile,"w"); fwrite($f,$x); fclose($f); } function show(){ $this->filecheck(); $parser = xml_parser_create(); xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); $data = implode("",file($this->file)); xml_parse_into_struct($parser,$data,$d_ar,$i_ar) or print_error(); xml_parser_free($parser); for($i=0;$i

Vendégkönyv: