- <?php
- 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 );
- }
- }
- ?>
- //该片段来自于http://www.codesnippet.cn/detail/050920135644.html
来源: http://www.codesnippet.cn/detail/050920135644.html