예제 #1
0
function trace($txt)
{
    //creating a text file that we can log to
    // this is helpful on a remote server if you don't
    //have access to the log files
    //
    //echo($txt."<br/>");
    $log = new cLOG("../resources/upload.txt", false);
    //$log->clear();
    $log->write($txt);
}
예제 #2
0
function trace($txt, $isArray = false)
{
    //creating a text file that we can log to
    // this is helpful on a remote server if you don't
    //have access to the log files
    $log = new cLOG("../resources/upload.txt", false);
    if ($isArray) {
        $log->printr($txt);
    } else {
        $log->write($txt);
    }
}