blob: 23983a5e8d394c768712fe408635fc7c8c131619 (
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 = implide("\n",$str);
fputs ($fp,date("Y-m-d H:i:s",time())."\t".$str."\n");
fclose ($fp);
}
}
|