Debug


/assets/cppv/aset_test.php

<?php

$GLOBALS["test_log_dir"]=dirname(__FILE__);

$GLOBALS["test_log_file"]=$GLOBALS["test_log_dir"]."/test.txt";

$GLOBALS["test_log_finish"]=false;

function add_test_str($str)

{

$f_=fopen($GLOBALS["test_log_file"], "a+");  

fwrite($f_, $str."\r\n");

fflush($f_);

fclose($f_);

}


function delete_test_file()

{

 if(file_exists($GLOBALS["test_log_file"]))

 {  

  unlink($GLOBALS["test_log_file"]);

 }

}


/*                      include_once($_SERVER['DOCUMENT_ROOT']."/assets/cppv/aset_test.php"); delete_test_file();

                        add_test_str("========= START agr_m ===========");*/

?>


$str= date ("d-m-Y H:i", time ());

add_test_str($str);