I am using phpagi for Asterisk Vicidial. I have one of the classes that I need to trace by writing some of the variables values to external log file while executing the program.
I have tried following two methods, but both were stoping the application from executing.
first:
file_put_contents ( string $filename , mixed $data [, int $flags = 0 [, resource $context ]] ) : int
second:
print_r(variable, value)
any help on how to write variables value on a log file will be appreciated.