summaryrefslogtreecommitdiffstats
path: root/library/Pbs/Debug.php
blob: 0a5231e15096d3de33a5165a82c5a9bd35f9181d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
class Pbs_Debug{

	function debug($str){
		$path = "../resources/debugs/";
		@mkdir($path ,0777, true);
		$fp = fopen($path.'lastsession.txt', "a");
		if(is_array($str))
			$str = implode("\t",$str);
    	fputs ($fp,date("Y-m-d H:i:s",time())."\t".$str."\n");
    	fclose ($fp);
    }
}