- class Record
- {
- var $pf;
-
- public function r_start($file = 'record')
- {
- ob_start();
- echo "____________________________________________\n";
- $this->pf = fopen($file, 'a+' );
- }
-
-
- public function r_close()
- {
- echo "\n____________________________________________\n";
- $out= ob_get_contents() ;
- ob_end_clean();
- fwrite($this->pf , $out);
- fclose($this->pf );
- }
- }
- ?>
复制代码
|