diff options
Diffstat (limited to 'library')
-rw-r--r-- | library/Pbs/Debug.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/library/Pbs/Debug.php b/library/Pbs/Debug.php new file mode 100644 index 0000000..23983a5 --- /dev/null +++ b/library/Pbs/Debug.php @@ -0,0 +1,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); + } +} |